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

倖福魔咒の 提交于 2019-12-03 04:40:06

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"

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"
asha

if you use two word for username or database name in .env,put it inside a double quotation.

First check env.

If your var value with space so check value in double quotes. like,

 MAIL_FROM_NAME="Sarvajanik School"

If you use single quotes then the possible to got this error containing spaces must be surrounded by quotes

Make sure that:

  • all variables with spaces are surrounded by quotes
  • there are no semi-colons
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!