| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function boot() |
||
| 16 | { |
||
| 17 | $this->app->bind(PaymentInterface::class, Library::class); |
||
| 18 | |||
| 19 | if ($this->app->runningInConsole()) { |
||
| 20 | $this->publishes([ |
||
| 21 | __DIR__ . '/../config/config.php' => config_path('goldenpay.php'), |
||
| 22 | ], 'config'); |
||
| 23 | |||
| 24 | if (! class_exists('CreateGoldenpayPaymentsTable')) { |
||
| 25 | $this->publishes([ |
||
| 26 | __DIR__ . '/../database/migrations/goldenpay_payments_table.php.stub' => database_path('migrations/' . date('Y_m_d_His') . '_create_goldenpay_payments_table.php'), |
||
| 27 | ], 'migrations'); |
||
| 28 | } |
||
| 29 | |||
| 30 | $this->commands([ |
||
| 31 | ResultCommand::class, |
||
| 32 | ]); |
||
| 48 |