fix logout issue #31

This commit is contained in:
Saeed Vaziry
2023-09-03 13:20:16 +02:00
parent ee7e880452
commit 229696e435
5 changed files with 35 additions and 70 deletions

View File

@ -148,9 +148,10 @@
<x-slot name="content">
<x-dropdown-link :href="route('profile')">Profile</x-dropdown-link>
<div class="border-t border-gray-100 dark:border-gray-700"></div>
<form>
<x-dropdown-link as="button">
Log Out
<form method="POST" action="{{ route('logout') }}">
@csrf
<x-dropdown-link :href="route('logout')" onclick="event.preventDefault(); this.closest('form').submit();">
{{ __('Log Out') }}
</x-dropdown-link>
</form>
</x-slot>