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 關注
- 200 瀏覽
添加回答
舉報