23 lines
484 B
PHP
23 lines
484 B
PHP
<?php
|
|
|
|
namespace App\Channels;
|
|
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class OneSignalChannel
|
|
{
|
|
/**
|
|
* Send the given notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @param \Illuminate\Notifications\Notification $notification
|
|
* @return void
|
|
*/
|
|
public function send($notifiable, Notification $notification)
|
|
{
|
|
$message = $notification->toOneSignal($notifiable);
|
|
|
|
// Send notification to the $notifiable instance...
|
|
}
|
|
}
|