flipbox / lumen-generator
A Lumen Generator You Are Missing
Installs: 2 359 083
Dependents: 24
Suggesters: 0
Security: 0
Stars: 821
Watchers: 26
Forks: 126
Open Issues: 4
Requires
- classpreloader/classpreloader: ^3.0|^4.0|^4.2
- illuminate/console: ^6.0|^7.0|^8.0|^8.17|^9.0|^10.0|^11.0
- illuminate/filesystem: ^6.0|^7.0|^8.0|^8.17|^9.0|^10.0|^11.0
- illuminate/support: ^6.0|^7.0|^8.0|^8.17|^9.0|^10.0|^11.0
- psy/psysh: ^0.12
- symfony/var-dumper: ^5.1|^5.2|^6.0|^7.0
Suggests
- anik/form-request: Required to use form request in Lumen.
- dev-develop
- 9.3.0
- 9.2.0
- 9.1.0
- 9.0.1
- 9.0.0
- 8.2.2
- 8.2.1
- 8.2.0
- 8.1.1
- 8.1.0
- 8.0.0
- 7.0.2
- 7.0.1
- 7.0.0
- 6.0.11
- 6.0.10
- 6.0.9
- 6.0.8
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0
- 5.6.10
- 5.6.9
- 5.6.8
- 5.6.7
- 5.6.6
- 5.6.5
- 5.6.4
- 5.6.3
- 5.6.2
- 5.6.1
- 5.6.0
- 5.5.1
- 5.5.0
- 5.4.4
- 5.4.3
- 5.4.2
- 5.4.1
- 5.4
- 5.3.4
- 5.3.3
- 5.3.2
- 5.3.1
- 5.3.0
- dev-master
This package is auto-updated.
Last update: 2024-11-22 13:41:47 UTC
README
Do you miss any Laravel code generator on your Lumen project? If yes, then you're in the right place.
Installation
To use some generators command in Lumen (just like you do in Laravel), you need to add this package:
composer require flipbox/lumen-generator
Configuration
Inside your bootstrap/app.php
file, add:
$app->register(Flipbox\LumenGenerator\LumenGeneratorServiceProvider::class);
Available Command
key:generate Set the application key
make:cast Create a new custom Eloquent cast class
make:channel Create a new channel class
make:command Create a new Artisan command
make:controller Create a new controller class
make:event Create a new event class
make:exception Create a new custom exception class
make:factory Create a new model factory
make:job Create a new job class
make:listener Create a new event listener class
make:mail Create a new email class
make:middleware Create a new middleware class
make:migration Create a new migration file
make:model Create a new Eloquent model class
make:notification Create a new notification class
make:observer Create a new observer class
make:pipe Create a new pipe class
make:policy Create a new policy class
make:provider Create a new service provider class
make:request Create a new form request class
make:resource Create a new resource
make:rule Create a new rule
make:seeder Create a new seeder class
make:test Create a new test class
notifications:table Create a migration for the notifications table
schema:dump Dump the given database schema
Additional Useful Command
clear-compiled Remove the compiled class file
serve Serve the application on the PHP development server
tinker Interact with your application
optimize Optimize the framework for better performance
route:list Display all registered routes.
NOTES
route:list
command has been added via appzcoder/lumen-route-list package.
Tinker include
Argument Usage
php artisan tinker path/to/tinker/script.php
script.php example:
$environment = app()->environment();
$output = new Symfony\Component\Console\Output\ConsoleOutput();
$output->writeln("<info>Hello the app environment is `{$environment}`</info>");
$output->writeln("<comment>Did something</comment>");
$output->writeln("<error>Did something bad</error>");