When extending a layout, you might wanna show a header on the homepage, but not in other pages. To do this, make two yields sections in the layout. One for header and one for content... place the section('header') in the homepage alone and paste the code there...
https://laracasts.com/series/laravel-6-from-scratch/episodes/16?autoplay=true