-
Validation\Rules\Password does not seem to have a property that defines the maximum number of characters. So if we add a validation rule for the maximum number of characters in the password, we need to add the rule. $request->validate([
'password' => ['max:64', Rules\Password::defaults()],
]); or set my custom rule in Rules\Password. My ideaHow about adding maximum character property to Rules\Password? Password::defaults(function () {
return Password::min(6)->max(128);
}); Any thoughts?Please give me your opinion on whether Rules\Password needs to have a rule of maximum number of characters. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm sorry, I thought again about it. |
Beta Was this translation helpful? Give feedback.
I'm sorry, I thought again about it.
I thought that max length validation of password is not always required.
So don't pay attention to this idea.