This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
@push to view @stack from service provider #2439
Comments
This was referenced Dec 11, 2020
dillingham
changed the title
Push to view @stack from service provider
@push to view @stack from service provider
Dec 16, 2020
@driesvints brought up a good point about unpredictable ordering in the socialite support PR. A method to optionally control the order of stacks would be nice: $this->pushStackOrder('jetstream::menu.after', [
'package-one::notification-menu',
'package-two::support-button',
]); |
Maybe if a package includes views you don't want: $this->pushStackIgnore('jetstream::menu.after', 'package-three::unwanted-view'); |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A way to
@push
to a@stack
from a service provider would enable packages the ability to extend other package's views.Adding hooks before and after specific parts of a UI would make it very extensible so other packages can inject views.
Maybe an optional array of views for "use first view":
You could even use this approach to populate vue components:
Example Jetstream package scenarios:
Would allow Spark to be a "Premium Jetstream Package"
The text was updated successfully, but these errors were encountered: