samedi 29 juillet 2017

@if is not working in my blade view laravel

code inside the if statement is not changing anything like i want to check if user is logged in then show his name on header but its not doing so..plus if statemet is not changing colour when i view it in sublime text.

@if (Auth::check())
    <ul class="nav pull-right">
        <li class="dropdown">
            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                <i class="fa fa-user"></i> 
                
                <b class="caret"></b>
            </a>
  <ul class="dropdown-menu">
                <li><a href="">Logout</a></li>
            </ul>                       
        </li>
    </ul>
    @endif



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire