public function updateUserProfile(Request $request)
    {
        $this->validateUserProfile($request);

        $originalEmail = Auth::user()->email;

        if (Spark::$updateProfilesWith) {
            $this->callCustomUpdater(Spark::$updateProfilesWith, $request);
        } else {
            Auth::user()->fill($request->all())->save();
        }

        if (Auth::user()->stripe_id && $originalEmail !== Auth::user()->email) {
            $this->updateStripeEmailAddress();
        }

        event(new ProfileUpdated(Auth::user()));

        return $this->users->getCurrentUser();
    }
public function updateUserProfile(Request $request)
    {
        $this->validateUserProfile($request);

        $originalEmail = Auth::user()->email;

        if (Spark::$updateProfilesWith) {
            $this->callCustomUpdater(Spark::$updateProfilesWith, $request);
        } else {
            Auth::user()->fill($request->all())->save();
        }

        if (Auth::user()->stripe_id && $originalEmail !== Auth::user()->email) {
            $this->updateStripeEmailAddress();
        }

        event(new ProfileUpdated(Auth::user()));

        return $this->users->getCurrentUser();
    }
public function updateUserProfile ( Request $ request ) { $ this -> validateUserProfile ( $ request ) ; $ originalEmail = Auth :: user ( ) -> email ; if ( Spark :: $ updateProfilesWith ) { $ this -> callCustomUpdater ( Spark :: $ updateProfilesWith , $ request ) ; } else { Auth :: user ( ) -> fill ( $ request -> all ( ) ) -> save ( ) ; } if ( Auth :: user ( ) -> stripe_id && $ originalEmail !== Auth :: user ( ) -> email ) { $ this -> updateStripeEmailAddress ( ) ; } event ( new ProfileUpdated ( Auth :: user ( ) ) ) ; return $ this -> users -> getCurrentUser ( ) ; }
Update the user's profile information.

@param  \Illuminate\Http\Request  $request
@return \Illuminate\Http\Response
Update the user s profile information .