Eager load notification relationships

This commit is contained in:
Toby Zerner 2015-05-30 13:57:39 +09:30
parent bd3bc6b274
commit 731b00571c

View File

@ -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);
}
}