예제 #1
0
 /**
  * Update the user's profile information.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function updateUserProfile(Request $request)
 {
     $this->validateUserProfile($request);
     if (kAuth::$updateProfilesWith) {
         $this->callCustomUpdater(kAuth::$updateProfilesWith, $request);
     } else {
         Auth::user()->fill($request->all())->save();
     }
     event(new ProfileUpdated(Auth::user()));
     return $this->users->getCurrentUser();
 }
예제 #2
0
 /**
  * Get the current user of the application.
  *
  * @return \Illuminate\Http\Response
  */
 public function getCurrentUser()
 {
     return $this->users->getCurrentUser();
 }