Support the ongoing development of Laravel.io →
Requests Input Session
Last updated 2 years ago.
0

There are a lot of ways to approach this. I'll share three..

Change field names so they are unique and remap in controller before saving

Move the errors to the top of the form and pass a variable that tells you which form was submitted and in blade use an if to show only on the correct form

Keep your existing double form page but also create a seperate login screen page. If validation fails for login call separate login screen .. keep reg process the same.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.