Fatboii
Fatboii
FFilament
Created by Fatboii on 2/6/2025 in #❓┊help
Web push notifications
Yo @Benjamin I did find a solution although web push notifications was more complex than i thought There is this Laravel library that I used to enabled sending push notifications from the notification API, you can use toDatabase and toWebPush at the same time and it will do both notifications https://github.com/laravel-notification-channels/webpush?tab=readme-ov-file When you have that setup you need a way for frontend to "listen" and "update" this. For this i created a Filament render hook and added a Livewire script (blade file) with some javascript https://gist.github.com/4RV1D/0f35ec69a68967dfdb88008b02aa1f43 Don't trust the script too much my JS knowledge isn't the best Then you also need a WebPushController in Laravel that can "save" and "delete" from that frontend script If you have any improvments or questions you can just @ me again
6 replies