Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BlackMercury's avatar

Changing minimum characters for password

How can i change the minimum characters for registering a password in laravel , the default in 8 chars.

Thanks for help

0 likes
3 replies
Nakov's avatar
Nakov
Best Answer
Level 73

Open up RegisterController which you can find within App\Http\Controllers\Auth and change this line:

'password' => 'required|string|min:8|confirmed',

you see the min:8 rule there.

1 like
BlackMercury's avatar

OMG i didn't imagine it was that easy , thank you both

Please or to participate in this conversation.