Support the ongoing development of Laravel.io →
Authentication Security
Last updated 9 months 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 9 months ago.
0

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

Unchanged from the install

Last updated 9 months 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 9 months ago.
0

Sign in to participate in this thread!

LaraJobs

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.

© 2023 Laravel.io - All rights reserved.