1 回答
TA贡献1877条经验 获得超6个赞
问题是您将输出放入翻译函数中,并且这些时间戳的输出是一个碳实例。
>>> __($u['created_at'])
PHP Warning: Illegal offset type in /app/vendor/laravel/framework/src/Illuminate/Translation/Translator.php on line 111
PHP Warning: Illegal offset type in isset or empty in /app/vendor/laravel/framework/src/Illuminate/Support/NamespacedItemResolver.php on line 25
PHP Warning: Illegal offset type in /app/vendor/laravel/framework/src/Illuminate/Support/NamespacedItemResolver.php on line 43
PHP Notice: Trying to access array offset on value of type null in /app/vendor/laravel/framework/src/Illuminate/Translation/Translator.php on line 330
PHP Notice: Undefined offset: 1 in /app/vendor/laravel/framework/src/Illuminate/Translation/Translator.php on line 117
PHP Notice: Undefined offset: 2 in /app/vendor/laravel/framework/src/Illuminate/Translation/Translator.php on line 117
=> Illuminate\Support\Carbon @1451606400 {#4467
date: 2016-01-01 00:00:00.0 UTC (+00:00),
}
但这里没有问题。
>>> $u['created_at']
=> Illuminate\Support\Carbon @1451606400 {#4465
date: 2016-01-01 00:00:00.0 UTC (+00:00),
}
>>>
- 1 回答
- 0 关注
- 170 浏览
添加回答
举报