diff --git a/app/Http/Requests/Fo/ListenFormRequest.php b/app/Http/Requests/Fo/ListenFormRequest.php index 4a525d4..6f48617 100644 --- a/app/Http/Requests/Fo/ListenFormRequest.php +++ b/app/Http/Requests/Fo/ListenFormRequest.php @@ -43,12 +43,20 @@ class ListenFormRequest extends FormRequest 'phone' => [ 'present', 'nullable', - !is_null(request()->country) ? (Country::make(request()->country)->value === Country::france->value ? 'phone:FR|max:25' : 'number|max:50') : 'number|max:50' + !is_null(request()->country) ? + (Country::make(request()->country)->value === Country::france->value ? + 'phone:FR|max:25' : + 'number|max:50') : + 'number|max:50' ], 'postal_code' => [ 'present', 'nullable', - !is_null(request()->country) ? (Country::make(request()->country)->value === Country::france->value ? 'postal_code:FR|max:25' : 'number|max:50') : 'number|max:50' + !is_null(request()->country) ? + (Country::make(request()->country)->value === Country::france->value ? + 'postal_code:FR|max:25' : + 'number|max:50') : + 'number|max:50' ], 'city' => 'present|nullable|string|between:3,20', 'country' => ['present', 'nullable', new Enum(Country::class)],