Does the validation class in Laravel validate exact words?
eg
$rules = [ \"field\" => \"hello\" ]
Where the val
Method updated for Laravel 5.5. https://laravel.com/docs/5.5/validation#rule-in
// 'in' takes an array of values $rules = [ 'field' => [ Rule::in('hello')] ];
Use Rule; namespace in your controller to access Rule class (Illuminate\Validation\Rule)
Use Rule;
(Illuminate\Validation\Rule)