标签: php regex laravel
我要防止这些字符/ :?“ <> | Laravel验证在字符串内部如何做到这一点?
答案 0 :(得分:1)
您可以使用regex / not_regex模式。例如:
'email' => 'not_regex:/^.+$/i'