samedi 1 juin 2019

laravel 5.8 Auth/RegisterController custom redirect on validation failure

I'm using Laravel 5.8, I have a single page that has both the Registration and Login forms (2 separate forms posting to the respective endpoints/controllers)

My Registration Form posts to the Auth/RegistrationController as provided by Lavarel Auth.

I would like to change the behaviour so that on an unsuccessful registration attempt it will add an additional parameter to redirect url so I know which form to apply to validation feedback too.

I'm already aware of the redirectTo variable this appears to be for successful requests though



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

Aucun commentaire:

Enregistrer un commentaire