-
-
Save prappo/3cb2841f4e1fa4e9095071c4b0f04a0c to your computer and use it in GitHub Desktop.
env file for Laravel postgresql database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.