samuel-nunes / lumen-form-request-validation
A Simple Solution For Form Request Validation On Lumen
v1.0.0
2022-08-20 17:17 UTC
Requires
- php: ^7.2.5 || ^8.0
- laravel/lumen-framework: ^6.0.0
This package is not auto-updated.
Last update: 2024-12-15 05:02:05 UTC
README
This small package contains a laravel-like solution for request form validation.
Contents
- Form Request Validation for Lumen
- Artisan Command
make:request
- Artisan Command
make:rule
Installation
You can install the package via composer:
composer require samuel-nunes/lumen-form-request-validation
Next, you must load the Artisan commands:
// app/Console/Kernel.php protected $commands = [ \SamuelNunes\LumenFormRequestValidation\Console\Commands\RequestMakeCommand::class, \SamuelNunes\LumenFormRequestValidation\Console\Commands\RuleMakeCommand::class ];
Usage
You can use:
-
php artisan make:request
to generate a new form request validation (it's works like laravel method). -
php artisan make:rule
to generate a new rule to use in your form request validation (it's works like laravel method too).
Credits
License
The MIT License (MIT). Please see LICENSE for more information.