Form Request Validation for Lumen
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.