How to generate .env file for laravel?

前端 未结 10 1065
不知归路
不知归路 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:15

    If the .env a file is missing, then there is another way to generate a .env file

    You can download env.example, rename it to .env and edit it. Just set up correct DB credentials etc.

    Don't forget to When you use the php artisan key:generate it will generate the new key to your .env file

提交回复
热议问题