laravel request validation check if values exists in table in same row 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'
];