You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
492 B

  1. <?php
  2. namespace App\Channels;
  3. use Illuminate\Notifications\Notification;
  4. class FcmChannel
  5. {
  6. /**
  7. * Send the given notification.
  8. *
  9. * @param mixed $notifiable
  10. * @param \Illuminate\Notifications\Notification $notification
  11. * @return void
  12. */
  13. public function send($notifiable, Notification $notification)
  14. {
  15. $message = $notification->toFcm($notifiable);
  16. $recipients = $notifiable->routeNotificationFor('fcm', $notification);
  17. }
  18. }