beka
199
5
Laravel

Displaying errors with Login and Register on same page

Posted 2 months ago by beka

I am trying to figure out Named Error Bags for default Laravel auth.

I have login and register form on the same page with same input names (email, password...) and when I get error for register password error message will appear for both register and login inputs. I want error to show only for register if I type in register form and same for the login.

What is the easiest way to solve this? Named Error Bags or it would be easier to change input names (loginEmail, registerEmail) and tweak auth?

Thanks.

Please sign in or create an account to participate in this conversation.