@if (Route::has('login'))
@auth @if (Auth::user()->role->id == 1)
Dashboard
@elseif(Auth::user()->role->id == 2)
Dashboard
@else null @endif @else
Login
@if (Route::has('register'))
Register
@endif @endauth
@endif
Laravel
Docs
Laracasts
News
Blog
Nova
Forge
Vapor
GitHub