0
我试图在diffForHumans
格式中获取两个日期之间的时间,任何人都可以帮我解释为什么它会抛出这个错误?Laravel:在diffForHumans格式(Carbon)中获取两个时间戳之间的时间
代码:
{{ Carbon\Carbon::createFromTimestamp($clientLogin->exit_timestamp)->diffForHumans($clientLogin->enter_timestamp) }}
错误:
Type error: Argument 1 passed to Illuminate\Cookie\Middleware\EncryptCookies::encrypt() must be an instance of Symfony\Component\HttpFoundation\Response, instance of Illuminate\View\View given