|
@@ -75,8 +75,9 @@ |
|
|
block discarded – undo |
|
75
|
75
|
*/ |
|
76
|
76
|
public function one(string $countryId, string $articleName): Response |
|
77
|
77
|
{ |
|
78
|
|
- if (($article = Article::find(strstr($articleName, '_', true))) == null) |
|
79
|
|
- return response()->json(null, 404); |
|
|
78
|
+ if (($article = Article::find(strstr($articleName, '_', true))) == null) { |
|
|
79
|
+ return response()->json(null, 404); |
|
|
80
|
+ } |
|
80
|
81
|
|
|
81
|
82
|
$related = ($latest = Article::all())->filter(function ($item) use ($article) { |
|
82
|
83
|
return in_array($article->categories[0], $item->categories); |
Please login to merge, or discard this patch.