laravel-notification-channels / fcm

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

Class [firebase.manager] does not exist #78

Closed HusseinAboNoktah closed 2 years ago

HusseinAboNoktah commented 3 years ago

when trying send a notification , the following message appears : Class firebase.manager does not exist

halimtuhu commented 3 years ago

same issue here ...

mikhi commented 3 years ago

Same issue here Laravel 5.8

gaoxu529 commented 3 years ago

Same issue here Laravel 5.8

eleiva commented 3 years ago

Laravel 5.8

Seems that firebase.manager is not being defined.

I was able to send notifications extending and replacing messaging() function as follows

vendor/laravel-notification-channels/fcm/src/FcmChannel.php:92

   protected function messaging()
    {
        return app('firebase.messaging');
    }

Any better solution will be appreciated. thx

TristanWeij commented 3 years ago

Hi all,

This package now uses the laravel-firebase library (https://github.com/kreait/laravel-firebase) to authenticate and make the API calls to Firebase. Follow the configuration steps specified in their readme before using this.

NOTE: Laravel 6x is required for this package. I don't think this package will work properly for Laravel 5.8x

Cheers,