FEATURE: add categories into article detail and article list

This commit is contained in:
Michal Kváček
2016-10-07 10:32:46 +02:00
parent 1e310f0da5
commit bceef69a72
3 changed files with 15 additions and 2 deletions
@@ -70,7 +70,7 @@ class ArticleList extends Handler
->enabled()
) {
$category = Category::where('url', $categoryUrl)
->first();
->firstOrFail();
$subcategories = $category->getChildren()
->toArray();