Using database notification, is there a way to get only the notifications (for one user) of one type?
I could do:
$notifications = $user->notifications()
->where('type', MyNotification::class)
->get();
Is it the right way to do this? Did I miss something?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire