src/Http/Controllers/Tenantarea/PasswordResetController.php
public function send(PasswordResetSendRequest $request)
    {
        $result = app('auth.password')
            ->broker($this->getPasswordResetBroker())
            ->sendResetLink($request->only(['email']));

        switch ($result) {
            case PasswordResetBrokerContract::RESET_LINK_SENT:
                return intend([
                    'url' => route('tenantarea.home'),
                    'with' => ['success' => trans($result)],
                ]);

            case PasswordResetBrokerContract::INVALID_USER:
            default:
                return intend([
                    'back' => true,
                    'withInput' => $request->only(['email']),
                    'withErrors' => ['email' => trans($result)],
                ]);
        }
    }
public function send(PasswordResetSendRequest $request)
    {
        $result = app('auth.password')
            ->broker($this->getPasswordResetBroker())
            ->sendResetLink($request->only(['email']));

        switch ($result) {
            case PasswordResetBrokerContract::RESET_LINK_SENT:
                return intend([
                    'url' => route('tenantarea.home'),
                    'with' => ['success' => trans($result)],
                ]);

            case PasswordResetBrokerContract::INVALID_USER:
            default:
                return intend([
                    'back' => true,
                    'withInput' => $request->only(['email']),
                    'withErrors' => ['email' => trans($result)],
                ]);
        }
    }
public function send ( PasswordResetSendRequest $ request ) { $ result = app ( 'auth.password' ) -> broker ( $ this -> getPasswordResetBroker ( ) ) -> sendResetLink ( $ request -> only ( [ 'email' ] ) ) ; switch ( $ result ) { case PasswordResetBrokerContract :: RESET_LINK_SENT : return intend ( [ 'url' => route ( 'tenantarea.home' ) , 'with' => [ 'success' => trans ( $ result ) ] , ] ) ; case PasswordResetBrokerContract :: INVALID_USER : default : return intend ( [ 'back' => true , 'withInput' => $ request -> only ( [ 'email' ] ) , 'withErrors' => [ 'email' => trans ( $ result ) ] , ] ) ; } }
Process the password reset request form.

@param \Cortex\Auth\B2B2C2\Http\Requests\Tenantarea\PasswordResetSendRequest $request

@return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
Process the password reset request form .