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\
Laravel 5.7
use Illuminate\Validation\Rule; Validator::make($data, [ 'field_name' => [ 'required', Rule::in(['yes', 'no', 'maybe']), ], ]);