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') - - - + + +