uzbek/laravel-validation-attributes

0.1.2 2023-04-02 10:31 UTC

This package is auto-updated.

Last update: 2024-12-01 00:12:52 UTC


README

Latest Version on Packagist Total Downloads Licence

Installation

You can install the package via composer:

composer require uzbek/laravel-validation-attributes

You can publish the config file with:

php artisan vendor:publish --tag="laravel-validation-attributes-config"

This is the contents of the published config file:

return [
    'enabled' => true,
    'cache_name' => 'laravel-validation-attributes',
    'cache_time' => 10,
    'directories' => [
        app_path('Http/Controllers'),
    ],
];

Usage

Add to kernel's middleware groups (web) this middleware:

Uzbek\LaravelValidationAttributes\ValidationAttributesMiddleware::class

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.