"FEATURE: add categories into article detail and article list"

This reverts commit 08e97fe2cb.
This commit is contained in:
Michal Kváček
2016-10-10 20:15:10 +02:00
parent 2c36203690
commit 20f6295f84
3 changed files with 15 additions and 2 deletions
@@ -71,7 +71,7 @@ class ArticleList extends Handler
if ($categoryUrl && $categoriesEnabled) {
$category = Category::where('url', $categoryUrl)
->first();
->firstOrFail();
$subcategories = $category->getChildren()
->toArray();