We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 019a59e commit e1b8599Copy full SHA for e1b8599
2 files changed
user_guide_src/source/outgoing/view_cells/018.php
@@ -10,6 +10,6 @@ class RecentPostsCell extends Cell
10
11
public function mount()
12
{
13
- $this->posts = model('PostModel')->orderBy('created_at', 'DESC')->findAll();
+ $this->posts = model('PostModel')->orderBy('created_at', 'DESC')->findAll(10);
14
}
15
user_guide_src/source/outgoing/view_cells/019.php
@@ -18,6 +18,6 @@ public function mount(?int $categoryId)
18
static fn ($query, $categoryId) => $query->where('category_id', $categoryId)
19
)
20
->orderBy('created_at', 'DESC')
21
- ->findAll();
+ ->findAll(10);
22
23
0 commit comments