bjuppa / laravel-blog

Flexible blog functionality for your Laravel project
MIT License
48 stars 8 forks source link

Have Blog instances handle their own Blade view names #2

Closed bjuppa closed 6 years ago

bjuppa commented 6 years ago

This makes all references to Blade view names go through Blog so that it can have a say what templates to use when being displayed.

With this a blog implementation can have it's own custom logic to decide which views to use, down to individual feed entries.

Also this makes all previous references to the view namespace handled centrally by configuration instead of printing blog::VIEWNAME throughout the views and controllers.