When rendering the page, I would expect 123 to come after the scripts pushed by the template, but 123 comes first. Same happens if I have a Blade component that pushes something to scripts.
What I am actually trying to achieve is define the site-wide scripts somewhere and then use @push and @prepend to load scripts before or after the site-wide scripts. As a work-around, I will be using two stacks, something like this in the template.blade.php:
In
template.blade.php
:In
page.blade.php
:When rendering the page, I would expect
123
to come after the scripts pushed by the template, but123
comes first. Same happens if I have a Blade component that pushes something toscripts
.What I am actually trying to achieve is define the site-wide scripts somewhere and then use
@push
and@prepend
to load scripts before or after the site-wide scripts. As a work-around, I will be using two stacks, something like this in thetemplate.blade.php
: