Replies: 1 comment
-
don't work , right ? |
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
-
Hi, how can I set up auto-discovery of anonymous Blade components in custom folders?
I know that this pull request has
Blade::anonymousComponentNamespace
however with that I could not discover and use anonymous components from other folders with empty namespace.I want to use a component in
app/custom/path/image.blade.php
like this:Besides custom paths, this is also important for modular Laravel applications with one ServiceProvider per Module. Components in a module should not contain prefix just because they are in a module. Because when module/folder is renamed, or components are moved/copied to another module, all component references must be edited.
So it would be nice to have a method to set custom paths for auto-discovery. This applies to class components too.
As a workaround, folder symlink could be created in
resources/views/components
if the current auto-discovery supports symlinks.Beta Was this translation helpful? Give feedback.
All reactions