<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
</head>

<body>
    <form method="POST" id="logoutForm" action="{{ route('logout') }}">
        @csrf
    </form>

    <script>
        window.onload = function() {
            document.getElementById('logoutForm').submit()
        };
    </script>
</body>

</html>