laravel-notification-channels / fcm

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

Return collection of responses from send #179

Closed dwightwatson closed 8 months ago

dwightwatson commented 8 months ago

Closes #178.

dwightwatson commented 8 months ago

I wonder if I should return an array instead?

kohenkatz commented 8 months ago

I wonder if I should return an array instead?

I believe the previous version returned an array, but I don't think that is a reason to need to return an array from this version. Collection implements the array interface, so I think older code that worked with version 3 should still work.

I have not tested this PR yet, but it looks good to me.