@section('content')
<h1>Test</h1>
@show
is equivalent to
@section('content')
<h1>Test</h1>
@stop
@yield('content')
A practical example would be
@section('footer')
<footer>...</footer>
@show
in your master page instead of let's say including it from a partial. That way you can use for example
@section('footer')
@ parent
<script src="..."></script>
@stop
in register.blade.php to include validation script that you don't require anywhere else on the site. Or you remove the @ parent and it overrides the master page content.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community