change item in fromrequest

This commit is contained in:
2025-11-05 11:30:45 +03:30
parent 61ef44a592
commit 0bf5d03ede
3 changed files with 6 additions and 6 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',