Support the ongoing development of Laravel.io →
Views Forms Validation
Last updated 1 year ago.
0

Rename input names? For example: <input type="email" name="login_email"> and <input type="email" name="register_email">

Last updated 1 year ago.
0

Yes, but Eloquent would than look for login_email field in DB, which I don't have. Maybe there's a way around that?

I guess I could rename the fields in controller but that just creates an extra step and would probably ruin the $errors, since login_email wouldn't exist anymore.

My current solution is to just output a flash message without the errors.

Last updated 1 year ago.
0

You can set the column name on the rules example $rules = ['login_email' => 'unique:users,email'];

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

pogachar pogachar Joined 26 Jul 2014

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.