benwilkins / laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel
MIT License
213 stars 91 forks source link

Unable to Use FCM in nWidart Module Notification Class #59

Open abhiburk opened 4 years ago

abhiburk commented 4 years ago

Hey I have implemented notification class using https://github.com/nWidart/laravel-modules and in that I am using method from toFcm but when I send notification through this class I get an error Call to undefined method Modules\Blog\Notifications\NotifyBlogChannel::toFcm()

When I use same toFcm method in Laravel Default channel (in app/notification) then that works perfectly. It seem it doesn't work in Module Notifications Classes

gildastema commented 4 years ago

please can you show me the peace of code