Пример #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  App\Http\Requests\CreateTeamRequest  $request
  * @param  \App\Team                            $team
  * @return \Illuminate\Http\Response
  */
 public function update(CreateTeamRequest $request, Team $team)
 {
     $team_name = $request->input('team_name');
     $team->update([$team_name]);
     return redirect(action('UserController@index'));
 }