Replies: 1 comment
-
There's no context feature in Blade components. You'll need to explicitly pass the data to the specific components:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey. I remember in blade-x package by spatie there was
context
component which would allow to pass some data to other components. So for example something like this would be possible.as you can see we don't need to pass $user to each component. Wondering if something like this is possible. Looking at the code I cannot see any functionality like that, but maybe there is an easy way to do it?
Beta Was this translation helpful? Give feedback.
All reactions