我一直收到这个错误:
Laravel 5:DateComparator.php第38行中的InvalidArgumentException
如果我刷新页面它会正常工作:它只在第一次加载时发生。
Whoops, looks like something went wrong.
1/1
InvalidArgumentException in DateComparator.php line 38:
"now - 3.0E+12 seconds" is not a valid date.
in DateComparator.php line 38
at DateComparator->__construct('<= now - 3.0E+12 seconds') in Finder.php line 249
at Finder->date('<= now - 3.0E+12 seconds') in FileSessionHandler.php line 91
at FileSessionHandler->gc('3.0E+12') in StartSession.php line 150
at StartSession->collectGarbage(object(Store)) in StartSession.php line 70
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 118
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 86
at Kernel->handle(object(Request)) in index.php line 54