Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Laravel 4 Basics Laravel and Databases The Database Class & Query Builder

DANIEL HÅKANSON
DANIEL HÅKANSON
1,029 Points

Laravel still does wants to use the Homestead database

Laravel still does wants to use Homestead database although I change the database to odot in database.php. I'm using Laraval 5.4.

I have created the odot-database I can see it in sequel pro.

return DB::select('select database();') still gives me homestead

Is this a cache issue?

1 Answer

DANIEL HÅKANSON
DANIEL HÅKANSON
1,029 Points

Oh, just realize the database settings should be set in .env, not in database.php