Package Data | |
---|---|
Maintainer Username: | Niellles |
Package Create Date: | 2016-02-14 |
Package Last Update: | 2023-02-01 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:10:22 |
Package Statistics | |
---|---|
Total Downloads: | 51,638 |
Monthly Downloads: | 710 |
Daily Downloads: | 37 |
Total Stars: | 18 |
Total Watchers: | 3 |
Total Forks: | 3 |
Total Open Issues: | 1 |
This package adds commands that you may know from Laravel, but aren't supported in Lumen 5 by default.
It's recommended to only use this package in your development environment. You will not need these commands in production and Laravel left them out for a reason.
Add "niellles/lumen-commands": "dev-master"
to "require-dev"
in your composer.json.
"require-dev": {
...
"niellles/lumen-commands": "dev-master"
}
Add the following line to your app.php:
if (env('APP_ENV') === 'local') {
$app->bind(Illuminate\Database\ConnectionResolverInterface::class, Illuminate\Database\ConnectionResolver::class);
$app->register(Niellles\LumenCommands\LumenCommandsServiceProvider::class);
}
You can now run the commands, like you would under a Laravel installation, from your CLI of choice:
php artisan make:model test
Not all of Laravel's commands are included in this package. At this point it's only some make:* commands that I really missed. If you miss a particular command feel free to request it, or better yet: create it yourself (not much more than copy/paste) and do a pull-request.
make:console {name}
make:controller {name}
make:exception {name}
make:job {name}
make:middleware {name}
make:model {name}
make:seed {name}