mercredi 7 octobre 2015

How to change header when user logged in laravel 5?

This is my code, i want to change the header when user is logged:

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>BLOG</title>
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
    </head>
        <body>
            @if(Auth::check())
                @include('includes.loggedHeader')
            @else
                @include('includes.header')
            }

            <!-- /.navbar-collapse -->
            <!-- Page Heading -->
            @yield('content')
            <!-- /.row --> 
        </body>
</html>

But i got this message :

  • Whoops, looks like something went wrong.
  • FatalErrorException in cc4ed1a29481d5c01e72bd954a4742b8 line 17: syntax error, unexpected end of file

I don't know how to fix me, help me please. Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire