文章对应分类多个

This commit is contained in:
2021-04-02 10:15:47 +08:00
parent 5e1c402087
commit ead950990f
12 changed files with 324 additions and 180 deletions

View File

@@ -13,10 +13,8 @@ class ArticleController extends Controller
if ($article->url) {
return redirect($article->url);
}
$category = $article->category;
$parent = $category->getTop();
return view('articles.show', compact('article', 'category', 'parent'));
return view('articles.show', compact('article'));
}
}