Redo user comments list

This commit is contained in:
2026-04-18 16:28:50 +02:00
parent 4fc11d7329
commit 2480c5b309
3 changed files with 88 additions and 121 deletions

View File

@@ -38,7 +38,7 @@ class UserComments extends Component
$comments = Comment::where('user_id', $this->model->id)
->when($this->commentSearch != '', fn ($query) => $query->where('body', 'like', '%'.$this->commentSearch.'%'))
->orderBy($orderby, $orderdirection)
->paginate(10);
->paginate(6);
return view('livewire.user-comments', [
'comments' => $comments,