Quickly initialize a Laravel/Lumen project using terminal.
homesteaddatabase or create it
.envfile based on
.env.examplefile and generate
I work as a web development teacher and frequently give assignments to my students. I teach them how to use Laravel, and then, they have to create many different Laravel projects for educational purpose.
That's why I need to quickly set up their Laravel project to be able to test and mark their projects.
Make sure Composer is installed globally.
$ composer global require cba85/laravel-init
Then make sure you have the global Composer binaries directory in your PATH.
This directory is platform-dependent, see Composer documentation for details.
$ composer global update cba85/laravel-init
Go inside a Laravel project folder.
Initialize a Lumen project.
$ laravel-init --lumen
Initialize a laravel project using npm.
$ laravel-init --npm
No test yet.