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')",
];
There's in
$rules = [
'field_name' => "required|in:yes,no,maybe",
];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With