Fork me on GitHub

Basic configuration

Create your .env file

Create a .env file from the example supplied. For example in the Development environment use:

cp .env.example-dev .env

Create your .settings file

Create a .settings file from the example supplied. For example in the Development environment use:

cp .settings-development.example .settings-development

NOTE 1: Do not use the environment files for the development environment in any other environment as this will cause a lot of failures in the bootstrap and kernel part of the application due to some dependencies being dynamically injected into the development environment.

NOTE 2: No example is provided for the production environment as you should carefully craft your own version based on the example from DEV & QA.

Generate application key

Generate the unique application key:

./artisan key:generate

Grant permissions to some directories.

Either grant permission to all users, or just to the Web Server user by making it a member of the group that owns these folders.

chmod -R ugo+rw storage/
chmod -R ugo+rw bootstrap/cache/

Review default configuration

Review and edit the .env file and all the files under /config. Paying particular attention to /config/app.php and /config/database.php. More details can be found in the Configuring and Documentation section below.

Note 3: By default all settings are set for a development environment, You will want to review and tweak before deploying to Prod.