laravel 关于验证汉字的问题
2019-08-06 本文已影响0人
麦子时光_新浪
https://www.regular-expressions.info/unicode.html
$rules = ['username' => 'required|regex:/\p{Han}/u', ]
https://www.regular-expressions.info/unicode.html
$rules = ['username' => 'required|regex:/\p{Han}/u', ]