How to resolve the error “[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory”?

后端 未结 6 2043
终归单人心
终归单人心 2020-12-14 16:53

I\'m using Ubuntu 14.04 on my machine. I installed composer and then laravel in the document root i.e. /var/www

I

6条回答
  •  [愿得一人]
    2020-12-14 17:29

    You can create it & rerun the command.

    # cd /var/www/laravel 
    # cp .env.example .env       //renames .env.example to .env
    # php artisan key:generate 
    Application key set successfully.
    

提交回复
热议问题