/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { \App\Departamento::destroy($id); return redirect('/departamento'); }
/** * Remove the specified resource from storage. * * @param int $id * * @return Response */ public function destroy($id) { Departamento::destroy($id); Session::flash('flash_message', 'Departamento deleted!'); return redirect('admin/departamento'); }
public function deletedepartamento() { Departamento::destroy(Input::get("id")); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Departamento::destroy($id); return \Redirect::route('departamento.index'); }