This is a very simple, but handy package for setting up local Laravel development environment. This package contains commands to do all the trivial steps you normally do when setting up your local Laravel development environment.
Create a .default_vars.env in the your home directory with the common .env variables that you always set e.g. MAIL_HOST=127.0.0.1 for Homestead based development environments.
It is also possible to specify a specific file to be used by using the --file options.
If you want dynamic vars you can use this:
VAR_NAME=[ASK_FOR_VALUE]
Then you will be prompted to enter a value
Create a .default_laravel_local_dev.tasks in your home directory with the common tasks that you normally perfrom on each local environment. e.g.
npm install
npm run dev
php artisan migrate
php artisan storage:link
Execute all of the available commands
php artisan setuplocaldev:all
You can install the package via composer:
composer require rabol/laravel-setup-local-dev --dev
// Setup you .env vars
php artisan setuplocaldev:setenv
or
php artisan setuplocaldev:setenv --file=myvars
// Execute commontasks
php artisan setuplocaldev:commontasks
or
php artisan setuplocaldev:commontasks --file=mytasks
// All of the above
php artisan setuplocaldev:all
or
php artisan setuplocaldev:all --file_env=myvars --file_tasks=mytasks
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.