Blade 7 Components Nested Index File #33273
Unanswered
frequentredundancy
asked this question in
General
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I've recently been playing around with Blade 7 Components and love the flexibility of them and how easy they are to define.
There has, however, been a single thing that has been bugging me a bit. By default you can define nested components like so;
I think this approach is great but it then leaves you with the situation where if you want to take advantage of the "parent" component, e.g
<x-navigation />
you now need to create a component outside of your clean namespacing at this path;I think especially for larger based projects, it would be much nicer to be able to do the following below;
This way, you can keep all your related components in the same namespace and don't have to worry about separating them in the filestructure to get clean syntax in your code.
Beta Was this translation helpful? Give feedback.
All reactions