Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Rule in in laravel

use IlluminateSupportFacadesValidator;
use IlluminateValidationRule;

Validator::make($data, [
    'zones' => [
        'required',
        Rule::in(['first-zone', 'second-zone']),
    ],
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #Rule #laravel
ADD COMMENT
Topic
Name
9+8 =