Skip to content

Conversation

@buzzclue
Copy link

The namespace paths should always allow search in the theme vendor directory.

Currently if /views/vendor/{namespace} doesn't exists the paths will return only package vendor and never lookup in the theme vendor.

Even if the /views/vendor/{namespace} does exists it search in /resources/themes/{THEME_NAME}/resources/views/vendor which is completely opposite to the documentation. Adding $themeSubPaths = ["vendor/{$namespace}"]; in the sub paths will ensure that the theme vendor directory is added in the paths.

The namespaced paths should always allow search in the theme vendor directory. Currently if /views/vendor/{namespace} doesn't exists it rely on the package vendor and never lookup in the theme vendor. Even if the /views/vendor/{namespace} does exists it search in /resources/themes/{THEME}/resources/views/vendor which is completely opposite to the documentation. Adding `$themeSubPaths = ["vendor/{$namespace}"];` in the sub paths will ensure the theme vendor directory lookup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant