I'm just starting to learn Laravel and want to know how to go about doing the below. I'll give the code then explain.
I have a file includes/head.blade.php
. this file contains things you find inside the <head>
. So it contains <title>@yield('title')</title>
If I now include this file in a page let say pages/about.blade.php
like this @include('includes.head')
, How then can I modify the <title>
nested inside the include using this line @section('title', ' bout Us')
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire