/** * Execute the command. * * @return void */ public function handle() { $category = Category::find($this->id); $category->name = $this->name; $category->slug = $this->slug; $category->save(); }
/** * Execute the command. * * @return void */ public function handle() { Category::find($this->id)->delete(); }