Roots Discourse

Add custom template directory

Hi,

I’m developing a composer package (tombroucke/sage-bootstrap-components), to add blade components for some bootstrap components. After installing the package, I still have to manually add the views directory of my package to sage/config/view.php.

Is there any function/filter I can use to add my views directory to the blade paths? I took some time to dig in the sage code, but haven’t found anything useful.

Kind regards,
Tom

1 Like

We made a simular package.

See: https://github.com/ItinerisLtd/sage-flbuilder/blob/8a3a78d0c9462a9009bedd950080043c935c6ea1/src/AbstractBladeModule.php

Be warned: sage-flbuilder contains huge technical debt.