From 516fb71b52f2c110de6427b91011f76d461115d4 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 15 Dec 2022 21:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E5=B9=95=E6=9F=A5=E8=AF=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DanmakuQueryController.php | 2 +- resources/views/common/footer.blade.php | 10 +-- resources/views/common/header.blade.php | 4 +- resources/views/danmaku/index.blade.php | 82 ++++++++++--------- resources/views/index.blade.php | 4 +- 5 files changed, 54 insertions(+), 48 deletions(-) diff --git a/app/Http/Controllers/DanmakuQueryController.php b/app/Http/Controllers/DanmakuQueryController.php index 4d9b769..4beb846 100644 --- a/app/Http/Controllers/DanmakuQueryController.php +++ b/app/Http/Controllers/DanmakuQueryController.php @@ -13,7 +13,7 @@ class DanmakuQueryController extends BaseController public function index() { $video_list = Videos::query() - ->withCount("danmakus", "bilibili_danmakus", "ixigua_danmakus", "douyin_danmakus") + ->withCount("danmakus", "bilibili_danmakus", "ixigua_danmakus", "douyin_danmakus", "programs") ->orderByDesc("created_at") ->paginate(10)->withQueryString(); return view("danmaku.index", [ diff --git a/resources/views/common/footer.blade.php b/resources/views/common/footer.blade.php index bd7cd1c..6c9634e 100644 --- a/resources/views/common/footer.blade.php +++ b/resources/views/common/footer.blade.php @@ -1,9 +1,9 @@ -