Skip to content

Commit 549e824

Browse files
authored
Merge pull request #4 from wast/patch-1
Adds logout button to admin panel
2 parents 7159881 + 3baf19d commit 549e824

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Views/blogetc_admin/layouts/admin_layout.blade.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,16 @@
6969
aria-haspopup="true" aria-expanded="false" >
7070
Logged in as {{ Auth::user()->name }}
7171
</a>
72-
72+
</li>
73+
<li class="nav-item ">
74+
<a class="nav-link" href="{{ route('logout') }}"
75+
onclick="event.preventDefault();
76+
document.getElementById('logout-form').submit();">
77+
{{ __('Logout') }}
78+
</a>
79+
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
80+
@csrf
81+
</form>
7382
</li>
7483
</ul>
7584
</div>

0 commit comments

Comments
 (0)