我只是想知道是否有人知道如何在拉维尔判断会话超时.
您可以判断会话是否有特定项目:
if (Session::has('name'))
{
$name = Session::get('name');
}
But you can't check whether the session has expired. It would be nice so that I can report back to the user in a more specific way. "Your session has timed out, please start again."
Any thoughts?