Updated Logout from form to get link

This commit is contained in:
PHP-Mods
2017-06-22 01:45:37 +03:00
parent 88d163cc13
commit bee4044d63
3 changed files with 3 additions and 15 deletions

View File

@@ -81,13 +81,6 @@
<a href="{{ url('/admin') }}">Admin</a>
@endif
<a href="{{ url('/user/dashboard') }}">Dashboard</a>
<a href="{!! url('/logout') !!}" class="btn btn-default btn-flat"
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
Sign out
</a>
<form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
{{ csrf_field() }}
</form>
<a href="{{ url('/logout') }}">Logout</a>
@endif
</div>