public function update($id, FilmRequest $request) { $input = $request->all(); $film = Film::findById($id); $film->update($input); return redirect('film/' . $film->id); }
/** * Store a newly created resource in storage. * * @param App\Http\Requests\PostRequest $request * @return Response */ public function store(FilmRequest $request) { $this->film_gestion->store($request->all(), $request->user()->id); return redirect('film')->with('ok', trans('back/film.stored')); }