Validation rule:
The password contains characters from at least three of the following five categories:
English uppercase characters (A – Z) English lowercase characters (a – z) Base 10 digits (0 – 9) Non-alphanumeric (For example: !, $, #, or %) Unicode characters
I want to use the validation rule of password like above and my code is like this. But still I can register to my system just by digits only.
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['required', 'min:8', 'regex:/[a-z]/', 'regex:/[A-Z]/', 'regex:/[0-9]/', 'regex:/[@$!%*#?&]/','confirmed'],