예제 #1
0
 public function update($id, FilmRequest $request)
 {
     $input = $request->all();
     $film = Film::findById($id);
     $film->update($input);
     return redirect('film/' . $film->id);
 }
예제 #2
0
 /**
  * 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'));
 }