@@ -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) |
@@ -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 | } |