Quickly initialize a Laravel/Lumen project using terminal.
This package:
- Clean vendor and node_modules folder if provided
โ ๏ธ Reset your local MySQLlaravelorhomesteaddatabase or create it- Install Composer/NPM dependencies
- Create
.envfile based on.env.examplefile and generateAPP_KEY - Clear Laravel caches (route, config, cache)
- Migrate and seed database
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-initThen 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-initGo inside a Laravel project folder.
$ laravel-initInitialize a Lumen project.
$ laravel-init --lumenInitialize a laravel project using npm.
$ laravel-init --npmNo test yet.