app/Http/Controllers/Auth/Traits/ResetPasswords.php
/**
     * Reset the given user's password.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Reset the given user's password.
Reset the given user ' s password .
public function reset(Request $request,$token)
    {
        $this->validate($request, $this->getResetValidationRules());
        $credentials = $request->only(
            'email', 'password', 'password_confirmation'
        );
        $credentials['token']=$token;
        $broker = $this->getBroker();
        $response = Password::broker($broker)->reset($credentials, function ($user, $password) {
            $this->resetPassword($user, $password);
        });
        switch ($response) {
            case Password::PASSWORD_RESET:
                return $this->getResetSuccessResponse($response);
            default:
                return $this->getResetFailureResponse($request, $response);
        }
    }
public function reset ( Request $ request , $ token ) { $ this -> validate ( $ request , $ this -> getResetValidationRules ( ) ) ; $ credentials = $ request -> only ( 'email' , 'password' , 'password_confirmation' ) ; $ credentials [ 'token' ] = $ token ; $ broker = $ this -> getBroker ( ) ; $ response = Password :: broker ( $ broker ) -> reset ( $ credentials , function ( $ user , $ password ) { $ this -> resetPassword ( $ user , $ password ) ; } ) ; switch ( $ response ) { case Password :: PASSWORD_RESET : return $ this -> getResetSuccessResponse ( $ response ) ; default : return $ this -> getResetFailureResponse ( $ request , $ response ) ; } }
Reset the given user's password.
Reset the given user ' s password .