vendredi 3 mai 2019

Laravel - How to redirect to login page after failed attempt with two forms

I had it in place previously It got override. I need to redirect with validation errors on failed login to login page

           redirect('login')
            ->withErrors($validator, 'login');

How to replace the sendFailedLoginResponse to redirect to login page with errors

    throw ValidationException::withMessages([
        $this->username() => [trans('auth.failed')],
    ]);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire