I want to check from a mother layout view if the children push something.
In the same way that I check with View::hasSection('section-name')
with hasSection method. I'm looking for something like : hasStack
.
The purpose is to the this :
@if(/* has stack 'foo' */)
<div id='foo'>
@stack('foo')
</div>
@endif
What is the best way to do it?
[Note] I'm dealing with Laravel 5.4
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2sZkIXZ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire