Edward Moon
Edward Moon

Reputation: 103

Why my Laravel Application still finding the older database name?

For example, I have DB_DATABASE=new_db in my .env file and the same as the config/database.php file but still showing error of Unknown database: 'older_database_name'. Please help. Thanks.

Anyway I migrated from MAMP to XAMPP..

Upvotes: 0

Views: 134

Answers (1)

ZeroOne
ZeroOne

Reputation: 9117

restart the server if any changes on .env

try php artisan config:cache and php artisan cache:clear

Upvotes: 1

Related Questions