|
@@ -46,6 +46,7 @@ class RegisterProviderRequest extends FormRequest
|
|
|
|
|
|
|
|
'zip_code' => 'required|string|max:20',
|
|
'zip_code' => 'required|string|max:20',
|
|
|
'address' => 'required|string|max:255',
|
|
'address' => 'required|string|max:255',
|
|
|
|
|
+ 'number' => 'sometimes|string|max:20|nullable',
|
|
|
'has_complement' => 'sometimes|boolean',
|
|
'has_complement' => 'sometimes|boolean',
|
|
|
'complement' => 'nullable|string|max:255',
|
|
'complement' => 'nullable|string|max:255',
|
|
|
'nickname' => 'nullable|string|max:255',
|
|
'nickname' => 'nullable|string|max:255',
|
|
@@ -53,6 +54,8 @@ class RegisterProviderRequest extends FormRequest
|
|
|
'address_type' => ['required', Rule::in(['home', 'commercial', 'other'])],
|
|
'address_type' => ['required', Rule::in(['home', 'commercial', 'other'])],
|
|
|
'city' => 'nullable|string|max:255',
|
|
'city' => 'nullable|string|max:255',
|
|
|
'state' => 'nullable|string|max:2',
|
|
'state' => 'nullable|string|max:2',
|
|
|
|
|
+ 'latitude' => 'sometimes|numeric|nullable',
|
|
|
|
|
+ 'longitude' => 'sometimes|numeric|nullable',
|
|
|
|
|
|
|
|
'daily_price_8h' => "required|numeric|min:{$dailyPriceMin}|max:500",
|
|
'daily_price_8h' => "required|numeric|min:{$dailyPriceMin}|max:500",
|
|
|
'daily_price_6h' => 'required|numeric|min:0',
|
|
'daily_price_6h' => 'required|numeric|min:0',
|