Is there a built in validator in Laravel 5 that checks if value is in array of my whitelisted values sort of speak.. Something like:
$rules = [
'field_name' => "required|in_array('yes', 'no', 'maybe')",
];
Is there a built in validator in Laravel 5 that checks if value is in array of my whitelisted values sort of speak.. Something like:
$rules = [
'field_name' => "required|in_array('yes', 'no', 'maybe')",
];
Laravel 5.7
There's
in