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?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FZYuI7
via IFTTT
Aucun commentaire:
Enregistrer un commentaire