Environment File - samuelgrant/fight-for-kidz GitHub Wiki
.env
The .env or environment file, is a text file used to store settings for an install of this application. The .env file can be accessed from anywhere within the code base.
This file is added to the .gitignore file. This means it will not be included in the application source control. This means you should put sensitive things like your database credentials here.
A word on security
While your .env file should never be shown to anyone, you should still protect your database and other resources by making accounts specific for this application and giving those accounts the smallest amount of power possible
Getting a copy of the .env file
Simply run the following command from your applications root directory cp .env.example .env
Default environment example .env.example file in case it is needed later
APP_NAME="Fight for Kidz"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
INVISIBLE_RECAPTCHA_SITEKEY=
INVISIBLE_RECAPTCHA_SECRETKEY=
INVISIBLE_RECAPTCHA_DEBUG=true