laravel-notification-channels / fcm

Firebase Cloud Messaging (FCM) notifications channel for Laravel
https://laravel-notification-channels.com/
MIT License
476 stars 123 forks source link

Can someone point me to an example of sending to all users #113

Closed dan-lutd closed 2 years ago

dan-lutd commented 2 years ago

Is there a tutorial using this package? or some examples ?

I followed he AccountActivated example but don't have the device tokens yet..

Initially just want to send an all users message.

Is there a way to do it?

devon2018 commented 2 years ago

+1

mbanusic commented 2 years ago

If you want to send notification to all users, you can do something like this:

Notification::send($users, new AccountActivated());