public function update(Request $request, $id) { $game = Game::whereId($id)->firstOrFail(); $game->pgn = $request->get('pgn'); $game->fritz = $request->get('fritz'); $game->save(); Toastr::success('Game updated.'); return redirect(action('GamesController@index', $game->id)); }