diff --git a/app/Http/Requests/StoreAccessoryRequest.php b/app/Http/Requests/StoreAccessoryRequest.php index c41bae7b4033..1085c6177e61 100644 --- a/app/Http/Requests/StoreAccessoryRequest.php +++ b/app/Http/Requests/StoreAccessoryRequest.php @@ -19,6 +19,7 @@ public function authorize(): bool public function prepareForValidation(): void { + parent::prepareForValidation(); if ($this->category_id) { if ($category = Category::find($this->category_id)) { diff --git a/app/Http/Requests/StoreConsumableRequest.php b/app/Http/Requests/StoreConsumableRequest.php index 9062b07cc5fa..f40deea11018 100644 --- a/app/Http/Requests/StoreConsumableRequest.php +++ b/app/Http/Requests/StoreConsumableRequest.php @@ -19,6 +19,7 @@ public function authorize(): bool public function prepareForValidation(): void { + parent::prepareForValidation(); if ($this->category_id) { if ($category = Category::find($this->category_id)) {