laravel中的所有请求和转储都会在结果之前添加一个^

exemple of error

exemple dd Request:all()

这种效果会在我的代码中产生很多错误,有人会通过类似的程序吗?

推荐答案

我对laravel framework Lumen(5.8.12)也有同样的问题,我通过返回5.8.4版解决了这个问题.

The Origin of the problem seems to be the Symfony VarDumper Component (\vendor\symfony\var-dumper\Cloner\Data.php, line 302):

$dumper->dumpScalar($cursor, 'default', '^');

Should be:

 $dumper->dumpScalar($cursor, 'default', '');

使现代化

It is there for a useful reason. In terminal if you hover over the mouse on that ^ sign it will show you the file path from where this dump is coming from! I think it's really a useful thing but I don't see it working in browser. So, it should either be removed from borwser or fix the issue there.

Laravel相关问答推荐

运行NPM Prod时出现VUE问题

laravel如何在Blade 模板中将元素添加到数组

如何计算具有特定 ID Laravel 的行

Laravel Horizo​​n 限制与优化

Laravel Livewire 组件在刷新后不会自动刷新/重新加载

使用 Eloquent (Laravel) 在 Group By 之前排序

将 hasOne 模型附加到另一个 Laravel/Eloquent 模型而不指定 id

如何在中间件 Laravel 中获取请求的控制器和操作的名称

如何在 Laravel 5.5 中为选定的请求类设置自定义响应

Eloquent ORM,deleted_at 使用软删除时没有索引

Laravel 和 PHPStorm 项目的 gitignore 中包含什么?

Laravel 存储文件的公共 url

Laravel 中的填充方法不起作用?

日期验证 - 如何本地化/翻译字符串今天和明天

Laravel 迁移命名约定

如何在 laravel 中使用 GROUP_CONCAT

无法打开laravel.log:无法打开流

Laravel 存储链接不适用于生产

如何在 Laravel 4 中组织不同版本的 REST API 控制器?

Laravel 5如何获取路由动作名称?