mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-08 04:00:14 -05:00
fix: n+1 comments
- add eager loading for user group
This commit is contained in:
@@ -135,7 +135,7 @@ class Comments extends Component
|
||||
{
|
||||
return $this->model
|
||||
->comments()
|
||||
->with('user', 'children.user', 'children.children')
|
||||
->with('user', 'user.group', 'children.user', 'children.user.group', 'children.children')
|
||||
->parent()
|
||||
->latest()
|
||||
->paginate($this->perPage);
|
||||
|
||||
Reference in New Issue
Block a user