From 2e6c5840ee982f0f8ffe75de3aa794afc83c4281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=86=E3=82=AF=E3=83=8B=E3=82=AB=E3=83=AB=E8=AB=8F?= =?UTF-8?q?=E8=A8=AA=E5=AD=90?= Date: Wed, 30 Dec 2020 16:25:19 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=AB=E3=82=83=E3=82=93=E3=81=93=E3=81=AE?= =?UTF-8?q?=E3=83=9E=E3=83=B3=E3=82=B3=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Home/CommentList.php | 1 + resources/views/pages/site/commentlist.blade.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/app/Http/Controllers/Home/CommentList.php b/app/Http/Controllers/Home/CommentList.php index 6b45b52..aacc1cc 100644 --- a/app/Http/Controllers/Home/CommentList.php +++ b/app/Http/Controllers/Home/CommentList.php @@ -20,6 +20,7 @@ class CommentList { } public function index () { + if ($this->valid['usr_ban'] != 1) return view('pages.site.notallowed', ['menu' => $this->menu, 'user' => $this->user]); $get = DB::table('blg_comments')->orderBy('created', 'desc')->paginate(10); setlocale(LC_ALL, 'ja_JP.utf8'); $ucol = $this->objUser->getGroupColours(); diff --git a/resources/views/pages/site/commentlist.blade.php b/resources/views/pages/site/commentlist.blade.php index 56a4e34..442fc40 100644 --- a/resources/views/pages/site/commentlist.blade.php +++ b/resources/views/pages/site/commentlist.blade.php @@ -1,6 +1,10 @@ @extends('layouts.site') @section('content') +
+ {{ $res->links() }} +
+
コメント一覧
@@ -36,4 +40,8 @@
+
+ {{ $res->links() }} +
+ @endsection