laravel中requests优雅验证密码

密码一般需要做强度验证

比如需要包含大小写字母数字和特殊符号

在laravel中如何优雅的实现

```
'password' => [
'required',
'string',
'alpha_dash',
'min:8', // must be at least 10 characters in length
'max:15',
'regex:/[a-z]/', // must contain at least one lowercase letter
'regex:/[A-Z]/', // must contain at least one uppercase letter
'regex:/[0-9]/', // must contain at least one digit
'regex:/[@$!%*#?&-]/', // must contain a special character
],
```

    A+
发布日期:2022年09月13日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: