Laravel notification with livewire
Hello folks, I'm stuck with laravel notification. It's not related to the filament. But I'm using filament for this project. In the laravel community, no one helps out yet btw. The things I'm trying to send notifications when a user comments on posts. In the database
notifications
data is there but I can't fetch the data that give me null or empty. I'm not using a queue. Hope you guys help me. I was stucking the whole day. Thank you.
11 Replies
it looks like your notification is tie to your
Comment
model but you looking thru User
model
check what is your notifiable_type
and notifiable_id
valuehere
check what queries run when trying to retrieve unread notification
[] empty
@wychoong here
your previous screenshot show that
notifiable_id
is 12, but you looking notification for User id 1?sry
here
so you can actually get the notification, no?
Actually, I want to get all notifications when auth user comments on other posts.
Ops, I see.
thank you I got it.
My false. I'm thinking wrong logic.
Thank you so.
Damn. Need to rest. zzz
Thank you so much.
👍