Filament noti in livewire component
I'm trying to send a filament notification in a Livewire component when a user creates a post, redirects to the home page, and displays the notification on the home page. How can I? Can I dispatch event or sth?
13 Replies
.
Did you check and follow the notifications docs? https://filamentphp.com/docs/3.x/notifications/installation
Yes
So what did you try and where are you stuck?
I mean user creates a post and redirects to another route and I want to see a filament notification in this route.
I understand what you mean. But where is your issue?
There is no issue. I don't know what to do this!
I need a little bit of work on your side, as the docs explain how to set up and send notificaitons. Where are you stuck? Sending the notification? Displaying them? Redirecting? Sending a notification when a user is created?
I want to see notification in home page. That's code is not worked.
Home page is a non Filament page? Did you embed the scripts as mentioned in the docs?
https://filamentphp.com/docs/3.x/notifications/installation#configuring-your-layout
Yes I've already set that
Um, you return from the method before sending the notification. The notification code is never executed.
Yes
Let me check again