Skip to content

Instantly share code, notes, and snippets.

@prappo
Created August 21, 2016 10:22
Show Gist options
  • Save prappo/3cb2841f4e1fa4e9095071c4b0f04a0c to your computer and use it in GitHub Desktop.
Save prappo/3cb2841f4e1fa4e9095071c4b0f04a0c to your computer and use it in GitHub Desktop.
env file for Laravel postgresql database
APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:hyHUpukUUigKeEsxpGeTW4UZ+Lg+WAWxcc4/BjlgNtE=
APP_URL=http://localhost
DB_CONNECTION=pgsql
DB_HOST=hostname
DB_PORT=5432
DB_DATABASE=Your database name
DB_USERNAME=Your database username
DB_PASSWORD=Your database password
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
@chadidi
Copy link

chadidi commented Mar 13, 2019

To connect to your MySQL or PostgreSQL database from your host machine's database client, you should connect to 127.0.0.1 and port 33060 (MySQL) or 54320 (PostgreSQL). The username and password for both databases is homestead / secret.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment