<?php
namespace App\Jobs;
use App\Helpers\Helper;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class NotifikasiPushNotification implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $to;
protected $title;
protected $body;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($to,$title,$body)
{
$this->to = $to;
$this->title = $title;
$this->body = $body;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
Helper::sendPushNotification($this->to,$this->title,$this->body);
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]