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

Commit 52083ac

Browse files
committed
Merge branch 'master' into 1.x
2 parents bd0f7ae + c31b78c commit 52083ac

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

coreui-stubs/layouts/app.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
</div>
3939

4040
<script src="{{ mix('js/app.js') }}" defer></script>
41+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.perfect-scrollbar/1.4.0/perfect-scrollbar.js"></script>
4142

4243
@yield('third_party_scripts')
4344

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)