二次改版
This commit is contained in:
@@ -19,12 +19,13 @@ class Controller extends BaseController
|
||||
{
|
||||
//顶部分类
|
||||
$categorys = Category::where('status', 1)
|
||||
->whereIn('type', [Category::TYPE_ARTICLE, Category::TYPE_SHOW])
|
||||
->where('top_show', 1)
|
||||
->orderBy('order', 'asc')
|
||||
->select('id', 'title')
|
||||
->get();
|
||||
$links = Link::get();
|
||||
->whereIn('type', [Category::TYPE_ARTICLE, Category::TYPE_LINK])
|
||||
->where('top_show', 1)
|
||||
->orderBy('order', 'asc')
|
||||
->select('id', 'title')
|
||||
->get();
|
||||
|
||||
$links = Link::get();
|
||||
|
||||
View::share('all_categorys', $categorys);
|
||||
View::share('links', $links);
|
||||
|
||||
Reference in New Issue
Block a user