0

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 ??

0

1 Answer 1

2
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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks @pr1nc3. It works. I did cache:clear but did not run config:cache. Thanks Again
Glad i helped you. Don't forget to mark the answer as accepted for future users to see as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.