Laravel TokenMismatchException session timeout
问题 I am running into an issue where when a user sits idle for more than 24 hours (my session timeout), or leaves the site and then comes back after 24 hours, they are not being logged out of the site, but their session is being expired, or at least their _token is no longer valid. This causes unwanted behavior as if the user submits a form after their _token has expired and they now receive a TokenMismatchException . Locally it seems that when the idle time exceeds the session lifetime the user