| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function handle() |
||
| 14 | { |
||
| 15 | $this->info('Installing the webhook service'); |
||
| 16 | |||
| 17 | $this->info('Publishing configuration...'); |
||
| 18 | |||
| 19 | $this->call('vendor:publish', [ |
||
| 20 | '--provider' => "Bencoderus\Webhook\WebhookServiceProvider", |
||
| 21 | '--tag' => 'config', |
||
| 22 | ]); |
||
| 23 | |||
| 24 | if (! class_exists('CreateWebhookLogsTable')) { |
||
| 25 | $this->call('vendor:publish', [ |
||
| 26 | '--provider' => "Bencoderus\Webhook\WebhookServiceProvider", |
||
| 27 | '--tag' => 'migrations', |
||
| 28 | ]); |
||
| 29 | } |
||
| 30 | |||
| 31 | $this->info('Webhook service installed successfully.'); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |