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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, how can I set up auto-discovery of anonymous Blade components in custom folders?
I know that this pull request has
Blade::anonymousComponentNamespacehowever 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.phplike 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/componentsif the current auto-discovery supports symlinks.Beta Was this translation helpful? Give feedback.
All reactions