Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Rule in in laravel

use IlluminateSupportFacadesValidator;
use IlluminateValidationRule;

Validator::make($data, [
    'zones' => [
        'required',
        Rule::in(['first-zone', 'second-zone']),
    ],
]);
Comment

PREVIOUS NEXT
Code Example
Php :: generate laravel event 
Php :: php How do you remove an array element in a foreach loop? 
Php :: ACF Photo Gallery Output 
Php :: laravel add crf token form 
Php :: laravel sluggable 
Php :: carbon now 
Php :: laravel observer check if field changed 
Php :: php float value 
Php :: php check if string contains words from array 
Php :: php read zip file without extracting 
Php :: onclick call route laravel 
Php :: web api return json example in php 
Php :: show time laravel 
Php :: php do while loop 
Php :: php curl get response body 
Php :: brew install php 5.6 
Php :: clear cache command in laravel controller 
Php :: laravel form put method 
Php :: users not having any role laravel spatie 
Php :: laravel upgrade php version 
Php :: big int php 
Php :: PHP utf8_encode — Converts a string from ISO-8859-1 to UTF-8 
Php :: how to create config file in php 
Php :: get deleted value laravel 
Php :: install php 5.6 mac 
Php :: laravel bootstrap-auth setup 
Php :: php is defined 
Php :: codeigniter order_by 
Php :: laravel softdelete migration 
Php :: how to use php to print inside html 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =