Reputation: 11
I want to prevent these characters /:?“<>| inside string by Laravel validation how I can do this?
Upvotes: 1
Views: 558
Reputation: 9
You can use regex/ not_regex patterns. For example:
'email' => 'not_regex:/^.+$/i'