Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation

$rules = ['name' => 'unique:users,name'];

$input = ['name' => ''];

Validator::make($input, $rules)->passes(); // true
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation
ADD COMMENT
Topic
Name
9+5 =