/** * Execute the console command. * * @return 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.'); } }
/** * Execute the console command. * * @return 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."); } }