There is no license information available for the latest version (dev-master) of this package.

Setup apps in one command for local work

dev-master 2015-03-23 11:19 UTC

This package is not auto-updated.

Last update: 2020-09-18 20:19:49 UTC


This requires some conventions noted below.

Pull it in via composer

composer require alfred-nutile-inc/setup

Then add it to your Kernel

	protected $commands = [



Git clone the repo to your homestead

The conventions for this setup is simple

Your local domain is the same as the repo name. If the repo is foo then

The Command is

php artisan core-app:setup reponame

This will

  • setup the db as the name of the reponame
  • setup nginx and restart it as the domain name says above. You need to udpate you machine hosts file
  • copies .env.example to .env update it as needed.
  • sets up testing stub db for sqlite
  • composer install and dump-autoload
  • migrates
  • bower install
  • npm install

You can limit what to run like this

php artisan core-app:setup reponame --run=SetupServerConfig --run=SetupFrontEnd


Your local env is named after the repo name and .dev so repo foo is local

SSL is always default. for help on this.

Adding to the package

Just add your step to app/SetUp/SetupCommand.php:93



  • Flags to run only some/one of the steps php artisan core-app:setup reponame --SetupEnv --SetupDevelopmentScripts
  • Plugin steps that are part of the project and not part of this repo.
  • One command to setup Ec2, RDS etc
  • S3 setup
  • Setup git repo dev, prod, staging and delete master