php - Lumen make:command -


i'm trying execute code within lumen install via command line. in full laravel , i've read can use commands achieve via "make:command", lumen not seem support command.

is there anyway enable command? failing that, what's best way of running code cli in lumen?

thanks

you can use artisan cli in lumen same way in laravel fewer built-in commands. see built-in commands, use php artisan command in lumen.

although there no make:command command @ lumen, can create custom command:

  • add new command class inside app/console/commands folder, can use sample class template of framework serve command

  • register custom command adding created class $commands member inside app/console/kernel.php file.

except command generating, can use laravel docs commands when working lumen.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -