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 8817900 commit a340b7bCopy full SHA for a340b7b
resources/views/linkstack/modules/admin-bar.blade.php
@@ -89,7 +89,15 @@
89
@endif
90
<span class="display-name">admin</span></a></li>
91
<li><a class="ab-item" href="{{ url('/studio/page') }}">Edit My Profile</a></li>
92
- <li><a class="ab-item" href="{{ route('logout') }}">Log Out</a></li>
+ <li><a class="ab-item" onclick="submitForm()" style="cursor:pointer">Log Out</a></li>
93
+ <script>
94
+ function submitForm() {
95
+ document.getElementById('logoutForm').submit();
96
+ }
97
+ </script>
98
+ <form id="logoutForm" action="{{ route('logout') }}" method="post">
99
+ <input type="hidden" name="_token" value="{{ csrf_token() }}">
100
+ </form>
101
</ul>
102
</div>
103
</li>
0 commit comments