您所缺少的流明发生器
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-generatorInside your bootstrap/app.php file, add:
$app->register(Flipbox\LumenGenerator\LumenGeneratorServiceProvider::class);…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:listcommand has been added via appzcoder/lumen-route-list package.
include Argument Usagephp 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");暂无开放 Issues,或尚未同步最近议题。