Skip to content

Commit

Permalink
fix route
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Nov 2, 2023
1 parent 14e5b84 commit cdb0fa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@
</li>

<li>
<a class="dropdown-item" href="{{ route('logout') }}"
<a class="dropdown-item" href="/logout"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();">
<span class="icon"><span class="mif-switch"></span></span>
<span class="caption">{{ trans("menu.logout") }}</span>

</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
<form id="logout-form" action="/logout" method="POST" style="display: none;">
@csrf
</form>
</a>
Expand Down

0 comments on commit cdb0fa5

Please sign in to comment.