check if first data row present or not laravel code example
Example: validate rule if row exist laravel
//update request
return [
'username' => 'unique:users,username,' . $this->route('internalUser')->id . ',id',
];
//create request
return [
'username' => 'unique:users'
];