@@ -29,8 +29,8 @@  | 
                                                    ||
| 29 | 29 | $captchaRequiredPlug = '';  | 
                                                        
| 30 | 30 | |
| 31 | 31 |          if (config('blog.services.reCaptchStatus')) { | 
                                                        
| 32 | - $captchaRequiredPlug = 'required'; // Rule  | 
                                                        |
| 33 | - $this->captchaCheck(); // Check  | 
                                                        |
| 32 | + $captchaRequiredPlug = 'required'; // Rule  | 
                                                        |
| 33 | + $this->captchaCheck(); // Check  | 
                                                        |
| 34 | 34 | }  | 
                                                        
| 35 | 35 | |
| 36 | 36 | return [  | 
                                                        
@@ -83,7 +83,7 @@  | 
                                                    ||
| 83 | 83 | $reverse_direction = (bool) $tag->reverse_direction;  | 
                                                        
| 84 | 84 | |
| 85 | 85 |          $posts = Post::where('published_at', '<=', Carbon::now()) | 
                                                        
| 86 | -            ->whereHas('tags', function ($q) use ($tag) { | 
                                                        |
| 86 | +            ->whereHas('tags', function($q) use ($tag) { | 
                                                        |
| 87 | 87 |                  $q->where('tag', '=', $tag->tag); | 
                                                        
| 88 | 88 | })  | 
                                                        
| 89 | 89 |              ->where('is_draft', 0) | 
                                                        
@@ -52,8 +52,8 @@ discard block  | 
                                                    ||
| 52 | 52 | protected function mapWebRoutes()  | 
                                                        
| 53 | 53 |      { | 
                                                        
| 54 | 54 |          Route::middleware('web') | 
                                                        
| 55 | - ->namespace($this->namespace)  | 
                                                        |
| 56 | -             ->group(base_path('routes/web.php')); | 
                                                        |
| 55 | + ->namespace($this->namespace)  | 
                                                        |
| 56 | +                ->group(base_path('routes/web.php')); | 
                                                        |
| 57 | 57 | }  | 
                                                        
| 58 | 58 | |
| 59 | 59 | /**  | 
                                                        
@@ -66,8 +66,8 @@ discard block  | 
                                                    ||
| 66 | 66 | protected function mapApiRoutes()  | 
                                                        
| 67 | 67 |      { | 
                                                        
| 68 | 68 |          Route::prefix('api') | 
                                                        
| 69 | -             ->middleware('api') | 
                                                        |
| 70 | - ->namespace($this->namespace)  | 
                                                        |
| 71 | -             ->group(base_path('routes/api.php')); | 
                                                        |
| 69 | +                ->middleware('api') | 
                                                        |
| 70 | + ->namespace($this->namespace)  | 
                                                        |
| 71 | +                ->group(base_path('routes/api.php')); | 
                                                        |
| 72 | 72 | }  | 
                                                        
| 73 | 73 | }  | 
                                                        
@@ -230,7 +230,7 @@ discard block  | 
                                                    ||
| 230 | 230 |                              ->where('is_draft', 0) | 
                                                        
| 231 | 231 |                              ->orderBy('published_at', 'asc'); | 
                                                        
| 232 | 232 |          if ($tag) { | 
                                                        
| 233 | -            $query = $query->whereHas('tags', function ($q) use ($tag) { | 
                                                        |
| 233 | +            $query = $query->whereHas('tags', function($q) use ($tag) { | 
                                                        |
| 234 | 234 |                  $q->where('tag', '=', $tag->tag); | 
                                                        
| 235 | 235 | });  | 
                                                        
| 236 | 236 | }  | 
                                                        
@@ -251,7 +251,7 @@ discard block  | 
                                                    ||
| 251 | 251 |                              ->where('is_draft', 0) | 
                                                        
| 252 | 252 |                              ->orderBy('published_at', 'desc'); | 
                                                        
| 253 | 253 |          if ($tag) { | 
                                                        
| 254 | -            $query = $query->whereHas('tags', function ($q) use ($tag) { | 
                                                        |
| 254 | +            $query = $query->whereHas('tags', function($q) use ($tag) { | 
                                                        |
| 255 | 255 |                  $q->where('tag', '=', $tag->tag); | 
                                                        
| 256 | 256 | });  | 
                                                        
| 257 | 257 | }  |