preg_match (): No ending delimiter '/' found
使用Request中的rules有问题,正确示例phone
public function rules()\
{\
return [\
'phone' => ['required', 'regex:/^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199)\d{8}$/', 'unique:users,phone'],\
'password' => 'required|string|min:6',\
];\}
本作品采用《CC 协议》,转载必须注明作者和本文链接