Answers for "laravel validetion unique"

PHP
2

laravel validate integer between

'item' => 'required|integer|between:1,10',
Posted by: Guest on October-21-2020
-1

laravel validation

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

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

Validator::make($input, $rules)->passes(); // true
Posted by: Guest on December-25-2020

Browse Popular Code Answers by Language