0

[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory

After the laravel installation, i run php artisan key:generate command. Got the following error.

 [ErrorException]
  file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory
Laravel Apache Add a comment
liam
asked May 02 2017

Answer

0

Easy cake, touch /var/www/laravel/.env

Comments
hjaspe
May 02 2024
False, 1.- Move /var/www/laravel/.env.example to /var/www/laravel/.env 2.- Run php artisan key:generate And now yes... easy cake...., the file .env change the value of APP_KEY
Add a comment
hjaspe
asked Nov 01 2017
edited Oct 05 2018
Post your Answer