/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param Game $game * @param StoreGameRequest $validationRequest * @return \Illuminate\Http\Response */ public function update(StoreGameRequest $request, Game $game) { $input = array_except(Input::all(), '_method'); $game->update($input); Session::flash('message', 'Game upated'); return redirect('/game'); }
function updateGame($game) { return Game::update($game); }