欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

laravel dingo/api 异常重复输出json

程序员文章站 2022-04-28 18:52:22
...
laravel集成dingo/api管理API后异常重复输出两个json
{"message":"Trying to get property of non-object","status_code":500}{"message":"Trying to get property of non-object","status_code":500}

这是配置错误还是这个组件不兼容
laravel5.3
dingo/api : 1.0.x@dev

回复内容:

laravel集成dingo/api管理API后异常重复输出两个json

{"message":"Trying to get property of non-object","status_code":500}{"message":"Trying to get property of non-object","status_code":500}

这是配置错误还是这个组件不兼容
laravel5.3
dingo/api : 1.0.x@dev

Trying to get property of non-object
$json=$obj->name;$obj可能为null或者不是对象,你检查下

相关标签: php laravel