Skip to content

Instantly share code, notes, and snippets.

@phreakin
Created May 12, 2023 08:21
Show Gist options
  • Save phreakin/7e2e33cbd6481883151795c9317af9e6 to your computer and use it in GitHub Desktop.
Save phreakin/7e2e33cbd6481883151795c9317af9e6 to your computer and use it in GitHub Desktop.
logout.blade.php
<div class="navbar-item {{ $class ?? '' }}">
<form method="POST" action="{{ route('auth.logout') }}">
@csrf
<p class="field">
<button type="submit" class="button is-dark">
<span class="icon">
{!! icon('log-out') !!}
</span>
<span>
{{ __('auth.logout') }}
</span>
</button>
</p>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment