Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Artisan command says : Dotenv values containing spaces must be surrounded by quotes

I'm trying to know the list of artisan command by using php artisan list . and the command return me the following error [Dotenv\Exception\InvalidFileException] Dotenv values containing spaces must be surrounded by quotes. What is wrong?

Thanks in advance.

like image 469
Md. Abu Taleb Avatar asked Apr 26 '17 16:04

Md. Abu Taleb


1 Answers

You should remove all spaces from .env file to make an app work again.

If you have to use spaces, instead of this:

VAR=some data 

Use quotes:

VAR="some data" 
like image 177
Alexey Mezenin Avatar answered Sep 28 '22 15:09

Alexey Mezenin