Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel auth routes

<!-- Default Laravel Auth Routes / Links for reference -->
@if (Route::has('login'))
    <div class="">
        @auth
            <a href="{{ url('/dashboard') }}" class="">Dashboard</a>
        @else
            <a href="{{ route('login') }}" class="">Log in</a>
            @if (Route::has('register'))
                <a href="{{ route('register') }}" class="">Register</a>
            @endif
        @endauth
    </div>
@endif
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #auth #routes
ADD COMMENT
Topic
Name
2+7 =