Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
refactor: always load relatable model for notifications (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
crnkovic authored Aug 2, 2021
1 parent c15bd5f commit 750d757
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/Concerns/HasNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function notifications(): MorphMany
{
return $this
->morphMany(config('hermes.models.notification'), 'notifiable')
->with('relatable')
->orderBy('created_at', 'desc')
->orderBy('id');
}
Expand Down

0 comments on commit 750d757

Please sign in to comment.