How to generate .env file for laravel?

前端 未结 10 1038
不知归路
不知归路 2020-12-24 05:39

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

$laravel new blog

or via composer:



        
10条回答
  •  失恋的感觉
    2020-12-24 06:14

    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.

提交回复
热议问题