<?php

namespace Mehrab\OrderService\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Mehrab\Service\Models\Service;

class OrderService_address_store_request extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        //'regex:/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/'
        return [

            'zip_code' => ['nullable'],
            //'address' => ['required','string','min:3','max:1000'],
            //'lat' => ['required'],//todo refactor convert to rule
            //'long' => ['required'],//todo refactor convert to rule
            //'region_id' => ['required','exists:regions,id']
        ];
    }

}
