Support the ongoing development of Laravel.io →
posted 10 years ago
Authentication
Last updated 1 year ago.
0

Is your password column long enough? It should be at least 70 characters long.

Also, does your model extend Eloquent or something else?

Last updated 1 year ago.
0

anlutro said:

Is your password column long enough? It should be at least 70 characters long.

Also, does your model extend Eloquent or something else?

I checked my fields again and your hunch was right. My field was set to Char(30), I switched it to varchar and have it a limit of 255. Everything works as it should.

This is the up and down statement I used in my migration file.

up()

DB::statement('ALTER TABLE `users` MODIFY COLUMN password VARCHAR(255)');

down()

DB::statement('ALTER TABLE `users` MODIFY COLUMN password CHAR(30)');
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jjosephs jjosephs Joined 14 Apr 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.