<?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 NotifikasiWa implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $no_hp;
protected $message;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct($no_hp,$message)
{
$this->no_hp = $no_hp;
$this->message = $message;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
Helper::sendWa($this->no_hp, $this->message);
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]