Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Created December 20, 2022 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/dec33a87fa81ead9229b0989d4ead5fe to your computer and use it in GitHub Desktop.
Save Shelob9/dec33a87fa81ead9229b0989d4ead5fe to your computer and use it in GitHub Desktop.
@if (Route::has('login'))
<div class="hidden fixed top-0 right-0 px-6 py-4 sm:block">
@auth
<a href="{{ url('/dashboard') }}" class="text-sm text-gray-700 dark:text-gray-500 underline">Dashboard</a>
@else
<a href="{{ route('login') }}" class="text-sm text-gray-700 dark:text-gray-500 underline">Log in</a>
@if (Route::has('register'))
<a href="{{ route('register') }}" class="ml-4 text-sm text-gray-700 dark:text-gray-500 underline">Register</a>
@endif
@endauth
</div>
@endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment