Laravel password validation rule

前端 未结 4 949
故里飘歌
故里飘歌 2020-11-29 17:47

How to added password validation rule in the validator?

Validation rule:

The password contains characters from at least three of the followi

4条回答
  •  萌比男神i
    2020-11-29 18:00

    Sounds like a good job for regular expressions.

    Laravel validation rules support regular expressions. Both 4.X and 5.X versions are supporting it :

    • 4.2 : http://laravel.com/docs/4.2/validation#rule-regex
    • 5.1 : http://laravel.com/docs/5.1/validation#rule-regex

    This might help too:

    http://www.regular-expressions.info/unicode.html

提交回复
热议问题