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

Can you show us your User model? It might be that your model has a setPasswordAttribute which allready hashes your password. In that case you can use,

$user->password = '1234';

And then the check should work.

Last updated 2 years ago.
0

Here is my model. http://laravel.io/bin/PxL9

Unchanged from the install

Last updated 2 years ago.
0

What type of field and length of your password field? I am wondering if the database server is cutting off part of the hash when saving it.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

shakyj shakyj Joined 3 Mar 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.