logo

Why does Laravel offer a max password length rule?

Doesn't hashing make this irrelevant?

Joel Clermont
Joel Clermont
2026-05-29

Passwords get hashed to a fixed length, so why does Laravel let you cap how long a password can be?

In today's video, I run a quick Tinker demo that exposes a surprising bcrypt behavior which makes it clear why having a maximum length for passwords makes sense.

Watch Now (6 min)

And after watching, don't forget to subscribe to our YouTube channel, so you don't miss future videos.

Here to help,

Joel

P.S. Surprises like this are why we publish the free Laravel security book.

Toss a coin in the jar if you found this helpful.
Want a tip like this in your inbox every weekday? Sign up below 👇🏼
email
No spam. Only real-world advice.