public function destroy(\CodeCommerce\Category $category) { $category->delete(); return redirect()->route('categories.index'); }
/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $this->category->delete($id); }