Replies: 1 comment 3 replies
-
Why would you expect that?
Maybe you are assuming the master template would be executed before its children templates, that is not how it works. More details on: |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
:Am I doing something wrong or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions