I think there is an issue with the documentation Composers | Sage Docs | Roots in the Automatic View Selection. The documentation says:
For example, if your view is a partial at
/resources/views/partials/page-header.blade.php
, a Composer at/app/View/Composers/PageHeader.php
will be automatically bound to it. In other words:
- Match paths below
/resources/views
and/app/View
.
These two lines do not seem to match. The bullet point says to “match paths”, but the first path in the example is “/resources/views/partials/” and the second is “/app/View/”