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

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

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Http/Requests/TaxClassRequest.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Http/Requests/TaxClassRequest.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/TaxClassRequest.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Http\Requests;

use FluentCart\Framework\Foundation\RequestGuard;

class TaxClassRequest extends RequestGuard
{

    public function rules()
    {
        return [
            'title'       => 'required|sanitizeText|maxLength:30',
            'description' => 'nullable|sanitizeTextArea',
        ];
    }

    public function messages()
    {
        return [
            'title.required'   => esc_html__('Tax class title is required.', 'fluent-cart'),
            'title.maxLength'  => esc_html__('Tax class title must be 30 characters or fewer.', 'fluent-cart'),
        ];
    }

    public function sanitize()
    {
        return [
            'title'       => 'sanitize_text_field',
            'description' => 'sanitize_text_field',
            'priority'    => 'intval',
        ];
    }

}

```
