From b9ebcbb3d48d6b255496e320df3b80e6163bbd74 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, 15 Dec 2021 00:25:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=94=E3=82=81=E3=82=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Home/Comment.php | 3 +- resources/views/theme/techsuwa/bash.blade.php | 36 +++++++++---------- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/app/Http/Controllers/Home/Comment.php b/app/Http/Controllers/Home/Comment.php index bdd970b..f73a0b5 100644 --- a/app/Http/Controllers/Home/Comment.php +++ b/app/Http/Controllers/Home/Comment.php @@ -7,7 +7,7 @@ use Illuminate\Http\Request; class Comment { public function add (Request $r) { - if (!isset($r->submit)) return ''; + if (!isset($r->submit)) return redirect('/'); $isvideo = false; if (!$cont = DB::table('blg_content')->where('slug', $r->slug)->first()) { if ($cont = DB::table('vid_video')->where('vid', $r->slug)->first()) $isvideo = true; } @@ -26,7 +26,6 @@ class Comment { ]); // 返事だったら、メールを送って - return redirect('/'.($isvideo ? 'video/play' : 'blog').'/'.$r->slug.'#comment-'.$add); } } \ No newline at end of file diff --git a/resources/views/theme/techsuwa/bash.blade.php b/resources/views/theme/techsuwa/bash.blade.php index 0b16e1e..5dc2953 100644 --- a/resources/views/theme/techsuwa/bash.blade.php +++ b/resources/views/theme/techsuwa/bash.blade.php @@ -1,26 +1,26 @@ - - - - + + + + - - + + - {{ config('app.name', 'Laravel') }} + {{ config('app.name', 'Laravel') }} - - - + + + @yield('content') - - - + + +