app/Http/Requests/UpdateUserAddressRequest.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 [
            'country' => 'required',
            'city' => 'required',
            'province' => 'required',
            'address' => 'required',
            'zipcode' => 'required|regex:/^[0-9]{3,7}$/',
            'phone' => 'required'
        ];
    }
public function rules ( ) { return [ 'country' => 'required' , 'city' => 'required' , 'province' => 'required' , 'address' => 'required' , 'zipcode' => 'required|regex:/^[0-9]{3,7}$/' , 'phone' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .