Hello,
You must now send a POST request with CSRF token.
<form id="logout-form" action="{{ url('/logout') }}" method="POST">
{{ csrf_field() }}
</form>
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Now that logout is a POST request instead of a GET request (in 5.3). If I try to logout after the session has expired I get a TokenMismatchException and am not logged out properly.
Although I prefer it to be a POST maybe the logout doesn't require a CSRF token?
Just got the same problem today. Easy fix, edit VerifyCsrfToken class :
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
'/logout'
];
}
Please or to participate in this conversation.