Quickly initialize a Laravel/Lumen project using terminal.
This package:
- Clean vendor and node_modules folder if provided
โ ๏ธ Reset your local MySQLlaravel
orhomestead
database or create it- Install Composer/NPM dependencies
- Create
.env
file based on.env.example
file 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-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.
$ laravel-init
Initialize a Lumen project.
$ laravel-init --lumen
Initialize a laravel project using npm.
$ laravel-init --npm
No test yet.