remove status approved condition from index items for users and fix the issue with validating store package request.

This commit is contained in:
Moradi
2025-03-11 13:34:55 +03:30
parent 2d1df25b0e
commit b0b6d700ba
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ class StorePackageRequest extends FormRequest
'name' => 'required|max:250',
'note' => 'nullable',
'items' => 'required|array|min:1',
'items.*' => ['exists:items,id','integer',new ValidateItemOwnership()],
'items.*.id' => ['exists:items,id','integer',new ValidateItemOwnership()],
];
break;
}
@@ -36,7 +36,7 @@ class StorePackageRequest extends FormRequest
'name' => 'required|max:250',
'note' => 'nullable',
'items' => 'required|array|min:1',
'items.*' => ['exists:items,id','integer',new ValidateItemOwnership()],
'items.*.id' => ['exists:items,id','integer',new ValidateItemOwnership()],
];
break;