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