My navbar should display the Sign up and Login buttons only if the user is not authenticated, otherwise a Log out button.
@if(Auth::check())
<li><a class="navbarButton" href="auth/register"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a class="navbarButton" href="auth/login"><span class="glyphicon glyphicon-log-in"></span> Login</a> </li>
@else
<li><a class="navbarButton" href="auth/logout"><span class="glyphicon glyphicon-log-out"></span> Log out</a></li>
@endif
I know that the user is authenticated, because I get redirected from the login and register pages, but they are still showing in the navbar.