by flipboxstudio

flipboxstudio /lumen-generator

A Lumen Generator You Are Missing

492 Stars 65 Forks Last release: 2 months ago (7.0.2) MIT License 118 Commits 38 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Lumen Generator

Total Downloads Latest Stable Version Latest Unstable Version License

Do you miss any Laravel code generator on your Lumen project? If yes, then you're in the right place.


To use some generators command in Lumen (just like you do in Laravel), you need to add this package:

composer require flipbox/lumen-generator


Inside your

file, add:

Available Command

key:generate         Set the application key

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: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: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:seeder Create a new seeder class make:test Create a new test class

notifications:table Create a migration for the notifications table

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.


command has been added via appzcoder/lumen-route-list package.

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("Hello the app environment is `{$environment}`");
$output->writeln("Did something");
$output->writeln("Did something bad");

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.