Support the ongoing development of Laravel.io →
Configuration Database
Last updated 2 years ago.
0

I just spent a bunch of time looking into this, so in the off chance you're still having issues, [this document] (http://mattstauffer.co/blog/laravel-forge-using-environment-variables-for-environment-detection) helped me get past it. You might also try updating your deployment script to: php artisan migrate --env=production

Last updated 2 years ago.
0
		'host'      => getenv('DB_HOST') ? getenv('DB_HOST') : 'localhost',
		'database'  => getenv('DB_DATABASE') ? getenv('DB_DATABASE') : 'your_database',
		'username'  => getenv('DB_USER') ? getenv('DB_USER') : 'homestead',
		'password'  => getenv('DB_PASSWORD') ? getenv('DB_PASSWORD') : 'secret',

and set these four variables DB_HOST , DB_DATABASE , DB_USER , DB_PASSWORD accordingly @forge

DB_HOST will be your application IP address DB_DATABASE will be the database you created DB_USER and DB_PASSWORD check your mail from forge

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nkconnor nkconnor Joined 7 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.