Beispiel #1
0
 /**
  * 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.');
     }
 }
Beispiel #2
0
 /**
  * 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.");
     }
 }