# fluent-cart/1.6.4/app/Http/Requests/TaxRateRequest.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 47 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Http/Requests/TaxRateRequest.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Http/Requests/TaxRateRequest.php
- Modified: 2026-06-11T12:21:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Http/Requests/TaxRateRequest.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Http\Requests;

use FluentCart\Framework\Foundation\RequestGuard;

class TaxRateRequest extends RequestGuard
{

    public function rules()
    {
        return [
            'country'      => 'nullable|sanitizeText|maxLength:45',
            'state'        => 'nullable|sanitizeText|maxLength:45',
            'postcode'     => 'nullable|sanitizeText|maxLength:45',
            'city'         => 'nullable|sanitizeText|maxLength:45',
            'rate'         => 'nullable|numeric|min:0|max:99999',
            'name'         => 'nullable|sanitizeText|maxLength:45',
            'group'        => 'nullable|sanitizeText|maxLength:45',
            'priority'     => 'nullable|numeric|min:1',
            'is_compound'  => 'nullable|numeric|min:0',
            'for_shipping' => 'nullable|numeric|min:0',
            'for_order'    => 'nullable|numeric|min:0',
            'class_id'     => 'nullable|numeric|min:1',
        ];
    }

    public function sanitize()
    {
        return [
            'country'      => 'sanitize_text_field',
            'state'        => 'sanitize_text_field',
            'postcode'     => 'sanitize_text_field',
            'city'         => 'sanitize_text_field',
            'rate'         => 'floatval',
            'name'         => 'sanitize_text_field',
            'group'        => 'sanitize_text_field',
            'priority'     => 'intval',
            'is_compound'  => 'intval',
            'for_shipping' => 'floatval',
            'for_order'    => 'intval',
            'class_id'     => 'intval',
        ];
    }

}

```
