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')],
    ]);



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2V9ROCN
via IFTTT

Aucun commentaire:

Enregistrer un commentaire