Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
258 views
in Technique[技术] by (71.8m points)

installation - How to generate .env file for laravel?

From the documentation I see it's possible to create a laravel project via laravel installer:

$laravel new blog

or via composer:

$composer create-project laravel/laravel --prefer-dist

If I try the first way .env file is not created. How can I ask laravel,artisan or composer to create a .env file for me?

question from:https://stackoverflow.com/questions/29915514/how-to-generate-env-file-for-laravel

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I had this problem of no .env files showing up in the project.

Turns out the IDE I was using (Netbeans, try not to judge) will show certain types of .hidden files but not all.

After racking my brains for a bit I checked the file system and found the .env + .env.example files / modified them with a text editor.

Leaving this answer for the rare situation someones using a dodgy IDE like myself.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...