Artisan command says : Dotenv values containing spaces must be surrounded by quotes
up vote
11
down vote
favorite
I'm trying to know the list of artisan command by using php artisan list
. and the command return me the following error
[DotenvExceptionInvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.
What is wrong?
Thanks in advance.
php laravel artisan
add a comment |
up vote
11
down vote
favorite
I'm trying to know the list of artisan command by using php artisan list
. and the command return me the following error
[DotenvExceptionInvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.
What is wrong?
Thanks in advance.
php laravel artisan
1
Some.env
libraries are picky about the syntax (or you simply got it wrong). You should check your.env
file.
– Álvaro González
Apr 26 '17 at 16:14
add a comment |
up vote
11
down vote
favorite
up vote
11
down vote
favorite
I'm trying to know the list of artisan command by using php artisan list
. and the command return me the following error
[DotenvExceptionInvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.
What is wrong?
Thanks in advance.
php laravel artisan
I'm trying to know the list of artisan command by using php artisan list
. and the command return me the following error
[DotenvExceptionInvalidFileException]
Dotenv values containing spaces must be surrounded by quotes.
What is wrong?
Thanks in advance.
php laravel artisan
php laravel artisan
asked Apr 26 '17 at 16:10
Abu Taleb
1,0471616
1,0471616
1
Some.env
libraries are picky about the syntax (or you simply got it wrong). You should check your.env
file.
– Álvaro González
Apr 26 '17 at 16:14
add a comment |
1
Some.env
libraries are picky about the syntax (or you simply got it wrong). You should check your.env
file.
– Álvaro González
Apr 26 '17 at 16:14
1
1
Some
.env
libraries are picky about the syntax (or you simply got it wrong). You should check your .env
file.– Álvaro González
Apr 26 '17 at 16:14
Some
.env
libraries are picky about the syntax (or you simply got it wrong). You should check your .env
file.– Álvaro González
Apr 26 '17 at 16:14
add a comment |
3 Answers
3
active
oldest
votes
up vote
50
down vote
accepted
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"
Explain the downvote, please.
– Alexey Mezenin
Jan 9 at 9:46
add a comment |
up vote
4
down vote
Verify your .env file. You need to check for the following:
- Any extra or non-needed spaces
- If you have any strings with spaces, make sure to surround them in quotes
Example:
varaible=123 Test
Needs to be
varaible="123 Test"
add a comment |
up vote
-1
down vote
if you use two word for username or database name in .env,put it inside a double quotation.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
50
down vote
accepted
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"
Explain the downvote, please.
– Alexey Mezenin
Jan 9 at 9:46
add a comment |
up vote
50
down vote
accepted
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"
Explain the downvote, please.
– Alexey Mezenin
Jan 9 at 9:46
add a comment |
up vote
50
down vote
accepted
up vote
50
down vote
accepted
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"
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"
answered Apr 26 '17 at 16:11
Alexey Mezenin
89k779108
89k779108
Explain the downvote, please.
– Alexey Mezenin
Jan 9 at 9:46
add a comment |
Explain the downvote, please.
– Alexey Mezenin
Jan 9 at 9:46
Explain the downvote, please.
– Alexey Mezenin
Jan 9 at 9:46
Explain the downvote, please.
– Alexey Mezenin
Jan 9 at 9:46
add a comment |
up vote
4
down vote
Verify your .env file. You need to check for the following:
- Any extra or non-needed spaces
- If you have any strings with spaces, make sure to surround them in quotes
Example:
varaible=123 Test
Needs to be
varaible="123 Test"
add a comment |
up vote
4
down vote
Verify your .env file. You need to check for the following:
- Any extra or non-needed spaces
- If you have any strings with spaces, make sure to surround them in quotes
Example:
varaible=123 Test
Needs to be
varaible="123 Test"
add a comment |
up vote
4
down vote
up vote
4
down vote
Verify your .env file. You need to check for the following:
- Any extra or non-needed spaces
- If you have any strings with spaces, make sure to surround them in quotes
Example:
varaible=123 Test
Needs to be
varaible="123 Test"
Verify your .env file. You need to check for the following:
- Any extra or non-needed spaces
- If you have any strings with spaces, make sure to surround them in quotes
Example:
varaible=123 Test
Needs to be
varaible="123 Test"
answered Apr 26 '17 at 16:13
Andrew Rayner
710316
710316
add a comment |
add a comment |
up vote
-1
down vote
if you use two word for username or database name in .env,put it inside a double quotation.
add a comment |
up vote
-1
down vote
if you use two word for username or database name in .env,put it inside a double quotation.
add a comment |
up vote
-1
down vote
up vote
-1
down vote
if you use two word for username or database name in .env,put it inside a double quotation.
if you use two word for username or database name in .env,put it inside a double quotation.
edited Nov 10 at 16:17
Machavity
23.9k135478
23.9k135478
answered Nov 10 at 15:44
asha_sulaiman
11
11
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43639440%2fartisan-command-says-dotenv-values-containing-spaces-must-be-surrounded-by-quo%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Some
.env
libraries are picky about the syntax (or you simply got it wrong). You should check your.env
file.– Álvaro González
Apr 26 '17 at 16:14