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
Linux Laravel Add a comment
liam
asked May 02 2017

Answer

0

"

The .env file is not yet present because you will first need to create and configure it.

Do the following

#Navigate to the correct folder
$ cd /var/www/laravel

#Copy the example file to make a .env file
$ cp .env.example .env

#Set the parameters
$ vi .env

"

Add a comment
linuxhelp
asked Jan 07 2019
Post your Answer