uzbek / laravel-validation-attributes
Laravel validation attributes
0.1.2
2023-04-02 10:31 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.14
- uzbek/laravel-attribute-scanner: ^0.1
Requires (Dev)
- laravel/pint: ^1.7
- nunomaduro/collision: ^6.4
- orchestra/testbench: ^7.24
- pestphp/pest: ^1.22
- pestphp/pest-plugin-laravel: ^1.4
- phpunit/phpunit: ^9.6
README
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.