Sonu Singh Jadoun
Sonu Singh Jadoun

Reputation: 255

Database not working with cloned laravel project

I have a project developed in laravel. Now i wanted to create another project in laravel so i copied all to new directory and changed database in env file. Porject in running but database is not changed. It is showing old projects database values. Any mistake i did ??

Upvotes: 0

Views: 142

Answers (1)

pr1nc3
pr1nc3

Reputation: 8338

php artisan config:cache

When you make changes in the env file you must configure your cache so the changes are loaded otherwise you load the old ones.

Upvotes: 2

Related Questions