Open sanmitpawar opened 3 years ago
Hi there, sorry if I misunderstand what you are asking. Are you asking to push the content only if it doesn't already exist? Would @once
do what you are looking for? https://laravel.com/docs/master/blade#the-once-directive
we are having @push('variable')
contents @endpush
and will call the same using
@stack('variable')
how to check that stack is isset or not and if not isset allow pushing some content like @yield