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

Your .env file has a database field, might want to change it there aswell?

0

I just looked at the file. It's changed there as well.

So nowhere in either of these files is the old database even mentioned.

Anywhere else I can look?

0

If you're using php artisan serve to serve up your local site, you need to restart it (hit CTRL+C or CMD+C) and run the command again. Otherwise, you can try running php artisan config:clear to clear the configuration cache :)

0

Mocrosoft said:

Your .env file has a database field, might want to change it there aswell?

Hi all

Can anyone explain why we have to change it in the .env if we have already set it up in the config file? Would be great to get some background around this setup.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jerauf jerauf Joined 16 Feb 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.