public function store(PasswordResetLink $listener, array $input)
    {
        $validation = $this->validator->with($input);

        if ($validation->fails()) {
            return $listener->resetLinkFailedValidation($validation->getMessageBag());
        }

        $response = $this->password->sendResetLink(['email' => $input['email']]);

        if ($response != Password::RESET_LINK_SENT) {
            return $listener->resetLinkFailed($response);
        }

        return $listener->resetLinkSent($response);
    }
public function store(PasswordResetLink $listener, array $input)
    {
        $validation = $this->validator->with($input);

        if ($validation->fails()) {
            return $listener->resetLinkFailedValidation($validation->getMessageBag());
        }

        $response = $this->password->sendResetLink(['email' => $input['email']]);

        if ($response != Password::RESET_LINK_SENT) {
            return $listener->resetLinkFailed($response);
        }

        return $listener->resetLinkSent($response);
    }
public function store ( PasswordResetLink $ listener , array $ input ) { $ validation = $ this -> validator -> with ( $ input ) ; if ( $ validation -> fails ( ) ) { return $ listener -> resetLinkFailedValidation ( $ validation -> getMessageBag ( ) ) ; } $ response = $ this -> password -> sendResetLink ( [ 'email' => $ input [ 'email' ] ] ) ; if ( $ response != Password :: RESET_LINK_SENT ) { return $ listener -> resetLinkFailed ( $ response ) ; } return $ listener -> resetLinkSent ( $ response ) ; }
Request to reset password.

@param  \Orchestra\Contracts\Auth\Listener\PasswordResetLink  $listener
@param  array  $input

@return mixed
Request to reset password .