1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- declare(strict_types=1);
- namespace App\Request\Api\v1\User;
- use Hyperf\Validation\Request\FormRequest;
- class AddressAddRequest extends FormRequest
- {
- /**
- * Determine if the user is authorized to make this request.
- */
- public function authorize(): bool
- {
- return true;
- }
- /**
- * Get the validation rules that apply to the request.
- */
- public function rules(): array
- {
- return [
- 'name' => 'required|string',
- 'area_code' => 'required|string',
- 'phone' => 'required|string',
- 'address' => 'required|string',
- 'detail_address' => 'required|string',
- 'postal_code' => 'required|string',
- 'lng' => 'required|string',
- 'lat' => 'required|string',
- ];
- }
- }
|