Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years ago.
0

in the credentials the password field is not optional and must be named password.

Auth::attemp(['Email' => ..., 'password' => ....]);

It doesn't matter what the field is named in the database as its not part of the query, but what ever field is the 'password' must be named password in the array passed to attempt.

0

lagbox said:

in the credentials the password field is not optional and must be named password.

Auth::attemp(['Email' => ..., 'password' => ....]);

It doesn't matter what the field is named in the database as its not part of the query, but what ever field is the 'password' must be named password in the array passed to attempt.

Thank you very much ! Finally solved it

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.