Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
10 | public function boot() |
||
11 | { |
||
12 | if ($this->app->runningInConsole()) { |
||
13 | $this->publishes([ |
||
14 | __DIR__ . '/../config/config.php' => config_path('yandex-checkout.php'), |
||
15 | ], 'config'); |
||
16 | |||
17 | if (! class_exists('CreateYandexCheckoutsTable')) { |
||
18 | $this->publishes([ |
||
19 | __DIR__ . '/../database/migrations/yandex_checkouts_table.php.stub' => database_path('migrations/' . date('Y_m_d_His') . '_create_yandex_checkouts_table.php'), |
||
20 | ], 'migrations'); |
||
21 | } |
||
22 | |||
23 | $this->commands([CheckPaymentCommand::class]); |
||
24 | } |
||
36 |