first commit
This commit is contained in:
22
app/Channels/OneSignalChannel.php
Normal file
22
app/Channels/OneSignalChannel.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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...
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user