/** * Delete a category from the database. * * @param mixed $id * * @return \Illuminate\Http\RedirectResponse */ public function getDelete($id) { $this->categories->delete($id); return $this->redirectRoute('admin.categories.index'); }