fix: add required validation for id to prevent null values
This commit is contained in:
parent
4686741425
commit
b6c3dd40e8
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ class SaveCustomerCollectionRequest extends CustomerCollectionRequest
|
|||
return array_merge(
|
||||
parent::rules(),
|
||||
['id' => [
|
||||
'required',
|
||||
// @phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundBeforeLastUsed
|
||||
function ($attribute, $value, $fail) use (&$idEnumRule) {
|
||||
/** @var \App\Enums\Departaimants\DepartaimantCollectionType */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue