for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bencoderus\Webhook\Console;
use Illuminate\Console\Command;
class InstallCommand extends Command
{
protected $signature = 'webhook:install';
protected $description = 'Install Webhook Dependencies';
public function handle()
$this->info('Installing the webhook service');
$this->info('Publishing configuration...');
$this->call('vendor:publish', [
'--provider' => "Bencoderus\Webhook\WebhookServiceProvider",
'--tag' => 'config',
]);
if (! class_exists('CreateWebhookLogsTable')) {
'--tag' => 'migrations',
}
$this->info('Webhook service installed successfully.');