From 0bf5d03ede318ad43b2d9773226a891e1fc4d0bd Mon Sep 17 00:00:00 2001 From: faezehzafarbakhsh Date: Wed, 5 Nov 2025 11:30:45 +0330 Subject: [PATCH] change item in fromrequest --- .../Requests/V3/Dashboard/UserManagement/FullStoreRequest.php | 4 ++-- .../V3/Dashboard/UserManagement/LimitStoreRequest.php | 4 ++-- .../Requests/V3/Dashboard/UserManagement/UpdateRequest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Requests/V3/Dashboard/UserManagement/FullStoreRequest.php b/app/Http/Requests/V3/Dashboard/UserManagement/FullStoreRequest.php index 9878c4ce..bdd52cb6 100644 --- a/app/Http/Requests/V3/Dashboard/UserManagement/FullStoreRequest.php +++ b/app/Http/Requests/V3/Dashboard/UserManagement/FullStoreRequest.php @@ -25,11 +25,11 @@ class FullStoreRequest extends FormRequest { return [ 'edarate_ostani_id' => [ - 'nullable','integer', 'exists:edarate_ostani,id', + 'integer', 'exists:edarate_ostani,id', Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))), ], 'edarate_shahri_id' => [ - 'nullable','integer', 'exists:edarate_shahri,id', + 'integer', 'exists:edarate_shahri,id', Rule::prohibitedIf(fn () => filled($this->input('edarate_ostani_id'))), ], 'province_id' => 'required|exists:provinces,id', diff --git a/app/Http/Requests/V3/Dashboard/UserManagement/LimitStoreRequest.php b/app/Http/Requests/V3/Dashboard/UserManagement/LimitStoreRequest.php index 7a25fc13..da4a6e66 100644 --- a/app/Http/Requests/V3/Dashboard/UserManagement/LimitStoreRequest.php +++ b/app/Http/Requests/V3/Dashboard/UserManagement/LimitStoreRequest.php @@ -25,11 +25,11 @@ class LimitStoreRequest extends FormRequest { return [ 'edarate_ostani_id' => [ - 'nullable','integer', 'exists:edarate_ostani,id', + 'integer', 'exists:edarate_ostani,id', Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))), ], 'edarate_shahri_id' => [ - 'nullable','integer', 'exists:edarate_shahri,id', + 'integer', 'exists:edarate_shahri,id', Rule::prohibitedIf(fn () => filled($this->input('edarate_ostani_id'))), ], 'province_id' => 'required|exists:provinces,id', diff --git a/app/Http/Requests/V3/Dashboard/UserManagement/UpdateRequest.php b/app/Http/Requests/V3/Dashboard/UserManagement/UpdateRequest.php index e3d1fa51..e8225c3e 100644 --- a/app/Http/Requests/V3/Dashboard/UserManagement/UpdateRequest.php +++ b/app/Http/Requests/V3/Dashboard/UserManagement/UpdateRequest.php @@ -26,11 +26,11 @@ class UpdateRequest extends FormRequest return [ 'province_id' => 'required|exists:provinces,id', 'edarate_ostani_id' => [ - 'nullable','integer', 'exists:edarate_ostani,id', + 'integer', 'exists:edarate_ostani,id', Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))), ], 'edarate_shahri_id' => [ - 'nullable','integer', 'exists:edarate_shahri,id', + 'integer', 'exists:edarate_shahri,id', Rule::prohibitedIf(fn () => filled($this->input('edarate_ostani_id'))), ], 'city_id' => 'exists:cities,id',