app/Http/Requests/Api/UserAddressRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'receiver'        => 'required|string',
            'receiver_mobile' => ['required', 'regex:' . getMobileCheckRegex()],
            'province'        => 'required|numeric',
            'city'            => 'required|numeric',
            'district'        => 'required|numeric',
            'address'         => 'required',
        ];
    }
public function rules ( ) { return [ 'receiver' => 'required|string' , 'receiver_mobile' => [ 'required' , 'regex:' . getMobileCheckRegex ( ) ] , 'province' => 'required|numeric' , 'city' => 'required|numeric' , 'district' => 'required|numeric' , 'address' => 'required' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .