Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel how to use @auth and @guest with multi authentication

@guest('admin')
    <li class="nav-item">
            <a class="nav-link" href="{{ route('auth.signin') }}">Login</a>
    </li>
    <li class="nav-item">
            <a class="nav-link" href="{{ route('auth.signup') }}">Sign Up</a>
    </li>
@endguest
 
PREVIOUS NEXT
Tagged: #Laravel #multi #authentication
ADD COMMENT
Topic
Name
5+1 =