Skip to content

Instantly share code, notes, and snippets.

@sixtusagbo
Last active April 29, 2023 16:33
Show Gist options
  • Save sixtusagbo/6ee7cb02b6432acc929f7c71ec736b8e to your computer and use it in GitHub Desktop.
Save sixtusagbo/6ee7cb02b6432acc929f7c71ec736b8e to your computer and use it in GitHub Desktop.
Here are the locations of Laravel env variables as of the current version right now. It can change in the future, though I doubt that yet.
APP_ENV=local
APP_DEBUG=true -> 'debug' on config/app.php
APP_KEY=my_key -> 'key' on config/app.php
// all these on config/database.php
DB_HOST=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
// config/broadcasting.php
BROADCAST_DRIVER=log
// config/cache.php
CACHE_DRIVER=file
// config/session.php
SESSION_DRIVER=file
SESSION_LIFETIME=120
// config/queue.php
QUEUE_DRIVER=sync // in older versions
QUEUE_CONNECTION=sync
// config/mail.php
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
// config/broadcasting.php
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment