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

liam
asked May 2, 2017
1 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

"

View More
linuxhelp
answered Jan 7, 2019
Your Answer
||||
 
100:0