/** * Remove the specified department from storage. */ public function destroy($id) { if (Request::ajax()) { Department::destroy($id); $output['success'] = 'deleted'; return Response::json($output, 200); } }
/** * Remove the specified branch from storage. * * @param int $id * @return Response */ public function destroy($id) { Department::destroy($id); return Redirect::route('departments.index'); }