Last active
March 10, 2018 10:33
-
-
Save yasaryousuf/2e9e702e47c9969fc17f5481b89d274f to your computer and use it in GitHub Desktop.
[laravel-logout]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<li> | |
<a href="{{ route('logout') }}" | |
onclick="event.preventDefault(); | |
document.getElementById('logout-form').submit();"> | |
<i class="fa fa-sign-out"></i>Logout | |
</a> | |
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> | |
{{ csrf_field() }} | |
</form> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment