I'm still having the same problem. However I found out, that it has something todo with the order in which I place my @stack
and @push
statements. In short, if @push
occurs before @stack
, it's working, if it appears after, it doesn't so.. just to illustrate:
...
@push('styles')
<!-- CSS here -->
@endpush
@stack('styles')
...
This would work. However, this:
...
@stack('styles')
@push('styles')
<!-- CSS here -->
@endpush
...
doesn't work. Is this intended behaviour? If so, how am I supposed to inject custom styles for certain views if my @stack
is in the header and I @push
to it inside a view?
The same issue for me. So do you find out the solution or what the problem is?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community