change item in fromrequest
This commit is contained in:
@@ -25,11 +25,11 @@ class FullStoreRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'edarate_ostani_id' => [
|
'edarate_ostani_id' => [
|
||||||
'nullable','integer', 'exists:edarate_ostani,id',
|
'integer', 'exists:edarate_ostani,id',
|
||||||
Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))),
|
Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))),
|
||||||
],
|
],
|
||||||
'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'))),
|
Rule::prohibitedIf(fn () => filled($this->input('edarate_ostani_id'))),
|
||||||
],
|
],
|
||||||
'province_id' => 'required|exists:provinces,id',
|
'province_id' => 'required|exists:provinces,id',
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ class LimitStoreRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'edarate_ostani_id' => [
|
'edarate_ostani_id' => [
|
||||||
'nullable','integer', 'exists:edarate_ostani,id',
|
'integer', 'exists:edarate_ostani,id',
|
||||||
Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))),
|
Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))),
|
||||||
],
|
],
|
||||||
'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'))),
|
Rule::prohibitedIf(fn () => filled($this->input('edarate_ostani_id'))),
|
||||||
],
|
],
|
||||||
'province_id' => 'required|exists:provinces,id',
|
'province_id' => 'required|exists:provinces,id',
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ class UpdateRequest extends FormRequest
|
|||||||
return [
|
return [
|
||||||
'province_id' => 'required|exists:provinces,id',
|
'province_id' => 'required|exists:provinces,id',
|
||||||
'edarate_ostani_id' => [
|
'edarate_ostani_id' => [
|
||||||
'nullable','integer', 'exists:edarate_ostani,id',
|
'integer', 'exists:edarate_ostani,id',
|
||||||
Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))),
|
Rule::prohibitedIf(fn () => filled($this->input('edarate_shahri_id'))),
|
||||||
],
|
],
|
||||||
'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'))),
|
Rule::prohibitedIf(fn () => filled($this->input('edarate_ostani_id'))),
|
||||||
],
|
],
|
||||||
'city_id' => 'exists:cities,id',
|
'city_id' => 'exists:cities,id',
|
||||||
|
|||||||
Reference in New Issue
Block a user