For those looking on it now (2018+), you can use :
@hasSection('name')
@yield('name')
@endif
See : https://laravel.com/docs/5.6/blade#control-structures
For those looking on it now (2018+), you can use :
@hasSection('name')
@yield('name')
@endif
See : https://laravel.com/docs/5.6/blade#control-structures