update package fcm
This commit is contained in:
@@ -30,7 +30,7 @@ class SendNotification extends Notification
|
||||
public function toFcm($notifiable)
|
||||
{
|
||||
return FcmMessage::create()
|
||||
->setData($this->data) // Menggunakan $this->data
|
||||
->setData($this->data)
|
||||
->setNotification([
|
||||
'title' => $this->title,
|
||||
'body' => $this->body,
|
||||
|
||||
@@ -202,6 +202,11 @@ return [
|
||||
App\Providers\EventServiceProvider::class,
|
||||
App\Providers\RouteServiceProvider::class,
|
||||
|
||||
/**
|
||||
* Package Firebase Cloud Message
|
||||
*/
|
||||
NotificationChannels\Fcm\FcmServiceProvider::class,
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|
||||
@@ -37,4 +37,9 @@ return [
|
||||
'redirect' => env('GOOGLE_REDIRECT_URI'),
|
||||
],
|
||||
|
||||
'fcm' => [
|
||||
'key' => env('FCM_SERVER_KEY'),
|
||||
'sender_id' => env('FCM_SENDER_ID'),
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user