二次改版

This commit is contained in:
2022-06-29 17:03:47 +08:00
parent 2288b76e4e
commit 619e493b0e
168 changed files with 4676 additions and 1759 deletions

View File

@@ -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);