这是我在控制器中的代码
$order = Order::with(['media','contact']) ->get();
这是我在视图中的代码,它工作正常
<label> {{__($order['details'])}} </label>但是如果我将属性更改为时间戳属性,例如 'created_at' 、 'updated_at' 我收到此错误
Illegal offset type
注意:视图中的代码在foreach里面
元芳怎么了
慕哥9229398
随时随地看视频慕课网APP