Artisan命令说:包含空格的Dotenv值必须用引号引起来 [英] Artisan command says : Dotenv values containing spaces must be surrounded by quotes

查看:112
本文介绍了Artisan命令说:包含空格的Dotenv值必须用引号引起来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过使用php artisan list来了解工匠命令列表.然后命令返回以下错误 [Dotenv\Exception\InvalidFileException] 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?

先谢谢了.

推荐答案

您应从.env文件中删除所有空格,以使应用再次正常工作.

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

使用引号:

VAR="some data"

这篇关于Artisan命令说:包含空格的Dotenv值必须用引号引起来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆