/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(DeparmentRequest $request) { $deparment = new Deparment($request->all()); $deparment->save(); //$this->deparment->create($request->all()); Flash::success('Departamento creado con exito!'); return redirect()->route('deparments.index'); }