Mpociot\CaptainHook\Commands\DeleteWebhook::handle PHP Метод

handle() публичный Метод

Execute the console command.
public handle ( ) : mixed
Результат mixed
    public function handle()
    {
        $id = $this->argument('id');
        $hook = Webhook::find($id);
        if ($hook === null) {
            $this->error('Webhook with ID ' . $id . ' could not be found.');
        } else {
            $hook->delete();
            $this->info('The webhook was deleted successfully.');
        }
    }
DeleteWebhook