Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function boot() |
||
15 | { |
||
16 | if ($this->app->runningInConsole()) { |
||
17 | $this->publishes([ |
||
18 | __DIR__ . '/../config/config.php' => config_path('webhook.php'), |
||
19 | ], 'config'); |
||
20 | |||
21 | if (! class_exists('CreateWebhookLogsTable')) { |
||
22 | $this->publishes([ |
||
23 | __DIR__ . '/../database/migrations/create_webhook_logs_table.php.stub' => database_path('migrations/' . date('Y_m_d_His', time()) . '_create_webhook_logs_table.php'), |
||
24 | // you can add any number of migrations here |
||
25 | ], 'migrations'); |
||
26 | } |
||
27 | |||
28 | // Registering package commands. |
||
29 | $this->commands([MakeWebhookCommand::class, InstallCommand::class]); |
||
30 | } |
||
31 | } |
||
32 | |||
43 |