protected function validateUserProfile(Request $request)
    {
        if (Spark::$validateProfileUpdatesWith) {
            $this->callCustomValidator(
                Spark::$validateProfileUpdatesWith, $request
            );
        } else {
            $this->validate($request, [
                'name' => 'required|max:255',
                'email' => 'required|email|unique:users,email,'.Auth::id()
            ]);
        }
    }
protected function validateUserProfile(Request $request)
    {
        if (Spark::$validateProfileUpdatesWith) {
            $this->callCustomValidator(
                Spark::$validateProfileUpdatesWith, $request
            );
        } else {
            $this->validate($request, [
                'name' => 'required|max:255',
                'email' => 'required|email|unique:users,email,'.Auth::id()
            ]);
        }
    }
protected function validateUserProfile ( Request $ request ) { if ( Spark :: $ validateProfileUpdatesWith ) { $ this -> callCustomValidator ( Spark :: $ validateProfileUpdatesWith , $ request ) ; } else { $ this -> validate ( $ request , [ 'name' => 'required|max:255' , 'email' => 'required|email|unique:users,email,' . Auth :: id ( ) ] ) ; } }
Validate the incoming request to update the user's profile.

@param  \Illuminate\Http\Request  $request
@return void
Validate the incoming request to update the user s profile .