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

Multidimensional array is not working for setData #165

Closed gulsheeraz closed 11 months ago

gulsheeraz commented 11 months ago

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

dwightwatson commented 11 months ago

PRs with tests accepted

gulsheeraz commented 11 months ago

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

dwightwatson commented 11 months ago

Cool, I suppose that's a solution