Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit c31b78c

Browse files
committed
fix: logout issue fixed
1 parent e0fcb5b commit c31b78c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

coreui-stubs/layouts/header.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
<a class="dropdown-item" href="#">
2525
<i class="c-icon mfe-2 cil-user"></i>Profile
2626
</a>
27-
<a class="dropdown-item" href="#">
27+
<a class="dropdown-item" href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
2828
<i class="c-icon mfe-2 cil-account-logout"></i>Logout
2929
</a>
30+
<form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
31+
@csrf
32+
</form>
3033
</div>
3134
</li>
3235
</ul>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy