igaster / laravel-theme

Theme support for Laravel
MIT License
516 stars 110 forks source link

Better compatibility with laravel-modules #133

Closed exciler closed 2 years ago

exciler commented 3 years ago

When working with laravel-modules and not selecting active theme via config.php but via Middleware (like when reading config from database), the viewHintPaths are registered before the active theme has been selected. This leads to ugly paths (with duplicated "resources/views" parts) inside the active theme folder. As the remapping of "resources/views/vendor" directory works well, we should remap the standard path for module views "resources/views/modules" as well.

GAE074 commented 3 years ago

Vote