Skip to content

Instantly share code, notes, and snippets.

@Sarav-S
Created June 2, 2016 22:25
Show Gist options
  • Save Sarav-S/14ac7834e56183311384a03577e1c970 to your computer and use it in GitHub Desktop.
Save Sarav-S/14ac7834e56183311384a03577e1c970 to your computer and use it in GitHub Desktop.
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param App\User $user
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $user)
{
$this->validate($request, $this->rules($user->id));
return $this->save($request, $user);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment