/** * Unpublished. * * @param int $id * * @return Response */ public function unpub($id) { $this->categoryRepository->update_state($id, 0); return Redirect()->route('categories'); }