Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #388
    jacob_smith
    Participant

    I see this is Laravel breeze welcome.blade.php

    @if (Route::has(‘login’))
    <div class=”sm:fixed sm:top-0 sm:right-0 p-6 text-right”>
    @auth
    Dashboard
    @else
    Log in

    @if (Route::has(‘register’))
    Register
    @endif
    @endauth
    </div>
    @endif

    • This topic was modified 1 year, 2 months ago by jacob_smith.
    #390

    Basically checks if there is a route named login and register. When you install Laravel Breeze or Jetstream, those routes are created by default.

    Its an added protection so that Laravel will not throw an error if those route becomes not available for whatever reason.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.