carrick's avatar

.env file dont appears in project folder

I copied the files of a Laravel project into another folder with the command cp -r project/ ../Documents/project to store the Laravel project "project" in the /Documents/project.

However, the ".env" was not copied and now also the .env file doesn't appear on the project folder, on the IDE.

Do you know how to solve this issue? How to get the .env file??

0 likes
4 replies
carrick's avatar

And maybe because of the .env file don't shows, when "https://project.test/" is accessed it shows "Whoops, looks like something went wrong." error.

carrick's avatar

The .env.example appears, the .gitattributes and .gitignore also appear.

Cronix's avatar
Cronix
Best Answer
Level 67

in shell, go to the dir where the files originally were any do ls -alh. Is .env there? If so, explicitly copy it (while in same dir) cp .env /path/to/destination/

1 like

Please or to participate in this conversation.