This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
dev.mnr.j20762
OctoberCMS documentation says it s available http://octobercms.com/docs/services/validation#rule-in
From laravel: https://laravel.com/docs/5.4/validation#rule-in
Last updated
alxy
October is based on Laravel 5.1, and there this class is simply not avaialble. It appears it has been introduced in L5.3
dev.mnr.j20762
True. I could have just done it in the simple way without the "Rule" class. Thanks! BTW, If it's come to be a need, can I update the Laravel version of OctoberCMS?
$validator = Validator::make($inputs, [ 'layout-code' => [ 'required', 'max:1', 'in:foo, bar', ], ]);
1-4 of 4