【发布时间】:2017-08-05 11:23:03
【问题描述】:
我正在尝试以diffForHumans 格式获取两个日期之间的时间,谁能帮我弄清楚为什么会抛出这个错误?
代码:
{{ Carbon\Carbon::createFromTimestamp($clientLogin->exit_timestamp)->diffForHumans($clientLogin->enter_timestamp) }}
错误:
类型错误:传递给 Illuminate\Cookie\Middleware\EncryptCookies::encrypt() 的参数 1 必须是 Symfony\Component\HttpFoundation\Response 的实例,给定的 Illuminate\View\View 实例
【问题讨论】: