mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Eager load notification relationships
This commit is contained in:
parent
bd3bc6b274
commit
731b00571c
|
@ -73,6 +73,7 @@ class IndexAction extends SerializeCollectionAction
|
|||
|
||||
$user->markNotificationsAsRead()->save();
|
||||
|
||||
return $this->notifications->findByUser($user, $request->limit, $request->offset);
|
||||
return $this->notifications->findByUser($user, $request->limit, $request->offset)
|
||||
->load($request->include);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user