We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 918edc1 commit a0ba98dCopy full SHA for a0ba98d
resources/views/app.blade.php
@@ -48,6 +48,16 @@
48
<a class="nav-link" href="{{ route('login') }}">Login</a>
49
</li>
50
@endguest
51
+
52
+ @auth
53
+ <li class="nav-item">
54
+ <a class="nav-link" href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit()">Logout</a>
55
+ </li>
56
57
+ <form id="logout-form" method="POST" action={{ route('logout') }} style="display:none;">
58
+ @csrf
59
+ </form>
60
+ @endauth
61
</ul>
62
</div>
63
0 commit comments