Is there a way to use relative component paths when using blade
07:06 28 Mar 2026

I am working on a fairly large project, and have a lot of components.
Those components are grouped in folders like so:

- views
  - components
    - bootstrap
      - navbar
        - navbar.blade.php
        - item.blade.php
        - menu
          - menu.blade.php
          - item.blade.php
          - divider.blade.php

To use those components I have to write quite the mouthful:

    
        
        
            
            
            
            
        
    

Is there a way to use those components in a relative way, so all I have to write is:

    
        
        
            
            
            
            
        
    

In other words is there a way to write just divider instead of whole bootstrap.navbar.menu.divider

php laravel laravel-blade