Update TopicsAPIController.php
This commit is contained in:
@@ -34,7 +34,7 @@ class TopicsAPIController extends Controller
|
|||||||
return Cache::remember($topic->slug. '_'.$currentPage, 300, function () use ($topic) {
|
return Cache::remember($topic->slug. '_'.$currentPage, 300, function () use ($topic) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'topic' => new TopicResource($topic),
|
'topic' => new TopicResource($topic),
|
||||||
'articles' => $topic->articles()->with('source')->latest('published_date')->paginate(8)
|
'articles' => $topic->articles()->with('source')->latest('published_date')->paginate(12)
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user