shiftechafrica/lumen-take-off
Form request is a package for Lumen that lets developer validate form requests like Laravel does. The package also has artisan commands.
118
| Install | |
|---|---|
composer require shiftechafrica/lumen-take-off |
|
| Latest Version: | v2.2.4 |
| License: | MIT |
| Last Updated: | Oct 23, 2023 |
| Links: | GitHub · Packagist |
Maintainer: shiftechafrica
Lumen Take Off
Description
A package built for lumen that ports most of the make commands from laravel.
##Info Added:
- command for generate request (make:request)
- providers for work with requests.
Installation
Just run the following in the root of your project
composer require shiftechafrica/lumen-take-off
Uncomment line in bootstrap/app.php
$app->register(App\Providers\EventServiceProvider::class);
Add line to bootstrap/app.php for enable generators
//for enable generator permanently
$app->register(ShiftechAfrica\LumenMakeServiceProvider::class);
//for enable generator in development mode
if (env('APP_ENV') != 'production' || env('APP_ENV') == 'local') {
$app->register(ShiftechAfrica\LumenMakeServiceProvider::class);
}
Add line to bootstrap/app.php for enable form requests
$app->register(ShiftechAfrica\FormRequestServiceProvider::class);
Requests info
In generated requests used FormRequest from this library. If you want migrate to Laravel framework, change use line in all generated requests
use ShiftechAfrica\Requests\LumenFormRequest;
\\to
use Illuminate\Foundation\Http\FormRequest;
Commands
make:job {name}- Makes a new job class in Jobs/make:console {name}- Makes a new console command in Console/Commands/make:controller {name}- Makes a new restful controller in Http/Controllers/make:model {name}- Makes a new model in /make:middleware {name}- Makes a new middleware class in Http/Middleware/make:exception {name}- Makes a new exception class in Exceptions/make:event {name}- Makes a new event class in Events/make:request {name}- Makes a new request class in Http/Requests/
##### And much more...
Related Packages
andreaspabst/lumen-request-validation
Adds the Laravel ability to separate validations from the controller
267
1
anik/form-request
Form request is a package for Lumen that lets developer validate form requests l...
396,753
50
pearl/lumen-request-validate
Lumen doesn't have form request validator seperatly. This package helps develope...
410,314
45
albertcht/lumen-form-request
Form request is a package for Lumen that lets developer validate form requests l...
14,922
10
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v2.2.4 | MIT | |||
| v2.2.3 | ^5.4| | MIT | ||
| v2.2.2 | ^5.4| | MIT | ||
| v2.1.1 | ^5.4| | MIT | ||
| v2.0.0 | ^5.4| | MIT | ||
| v1.9.9 | ^5.4| | MIT | ||
| v1.8.8 | ^5.4| | MIT | ||
| v1.7.7 | ^5.4| | MIT | ||
| v1.6.6 | ^5.4| | MIT | ||
| v1.5.5 | >=5.6 | ~5.1 | | MIT | |
| v1.4.4 | >=5.6 | ~5.1 | | MIT | |
| v1.3.3 | >=5.6 | ~5.1 | | MIT | |
| v1.2.2 | >=5.6 | ~5.1 | | MIT | |
| v1.1.1 | >=5.6 | ~5.1 | | MIT | |
| v1.0.0 | >=5.6 | ~5.1 | | MIT |