How to generate .env file for laravel?

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

    In windows OS, you can open command prompt, change directory to your project directory.
    Example,
    My project directory

    E:\xampp\htdocs\my_project
    


    You can type into your Command prompt like this (hit enter each line):

    E:
    
    cd xampp\htdocs\my_project
    

    Then you can type,

    copy .env.example .env
    

    If you are using Linux, you can type cp, instead of copy

提交回复
热议问题