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

Multidimensional array is not working for setData #165

Closed gulsheeraz closed 1 year ago

gulsheeraz commented 1 year ago

$this->payload = [ 'booking' => [ 'id' => $this->booking->id, 'booking_date' => $this->booking->booking_date, ], 'customer' => $customer, ]; Above payload is not supported

dwightwatson commented 1 year ago

PRs with tests accepted

gulsheeraz commented 1 year ago

I have successfully passed the data after converting it into JSON format json_encode.

dwightwatson commented 1 year ago

Cool, I suppose that's a solution