Exemplo n.º 1
0
 /**
  * @param $slugOrId
  * @param UpdateProfileRequest $request
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
  */
 public function putProfile($slugOrId, UpdateProfileRequest $request)
 {
     $user = $this->user->findBySlugOrIdOrFail($slugOrId);
     $user->update($request->all());
     return redirect(route('learning.user.profile', $user->slug));
 }