文章对应分类多个
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user