laravel validation return all fields required but it has data code example
Example 1: laravel validation
$rules = ['name' => 'unique:users,name'];
$input = ['name' => ''];
Validator::make($input, $rules)->passes(); // true
Example 2: laravel validation
Rule::unique('users')->ignore($user)