Looking to hire Laravel developers? Try LaraJobs

laravel-validation-attributes maintained by uzbek

Description
Laravel validation attributes
Author
Last update
2023/04/02 12:31 (dev-main)
License
Downloads
43

Comments
comments powered by Disqus

Laravel validation attributes

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.