Skip to content

Instantly share code, notes, and snippets.

@Alexisgt01
Created September 19, 2019 16:21
Show Gist options
  • Save Alexisgt01/77bf53df60ede686c35fd771c9ff9496 to your computer and use it in GitHub Desktop.
Save Alexisgt01/77bf53df60ede686c35fd771c9ff9496 to your computer and use it in GitHub Desktop.
<a href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('frm-logout').submit();">
<form id="frm-logout" action="{{ route('logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment