Carlos Diaz
Carlos Diaz

Reputation: 381

Laravel try to load files from old folder

For some reasons, I had to change my project to another folder. I moved as a new project, I mean, using composer to install "vendor" folder as a new project.

My problem is, laravel (v5.6) is trying to load the files from old folder and I can't understand why is doing that. I have 6 years using this framework and this is the first time I saw that problem.

I cleaned cache from, browser, laravel project, the server (IIS), and composer.

When I want to generate a new key using artisan. But it is creating the key for .env in the old folder, not the current one.

I can't understand what the heck is going on? enter image description here enter image description here

Upvotes: 0

Views: 1184

Answers (1)

Carlos Diaz
Carlos Diaz

Reputation: 381

I found the problem searching file by file...

Laravel is creating a file named "config.php" into folder "bootstrap/cache". That file must be deleted when you install the project on a new folder.

I lost lot of time for that!

Upvotes: 4

Related Questions