修改详情页是否显示时间
This commit is contained in:
@@ -28,7 +28,10 @@ class ArticleController extends Controller
|
||||
|
||||
$category = $article->category;
|
||||
|
||||
$next = Article::where('id', '>', $article->id)->where('status', 1)->first();
|
||||
$next = Article::where('id', '>', $article->id)
|
||||
->where('category_id', $category->id)
|
||||
->where('status', 1)
|
||||
->first();
|
||||
$parent = getTopCate($category->id);
|
||||
|
||||
return view('articles.show', compact('article', 'category', 'next', 'parent'));
|
||||
|
||||
Reference in New Issue
Block a user