public function destroy(Request $request, $id) { /** @var Category $category */ $category = Category::findOrFail($id); $this->authorize('destroy', $category); $category->delete(); return $this->createDefaultResponse($request); }