45 lines
822 B
PHP
45 lines
822 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class PengajuanValidNotification extends Notification implements ShouldQueue
|
|
{
|
|
use Queueable;
|
|
|
|
protected $pengajuan;
|
|
|
|
/**
|
|
* Create a new notification instance.
|
|
*
|
|
* @param mixed $pengajuan
|
|
*/
|
|
public function __construct($pengajuan)
|
|
{
|
|
$this->pengajuan = $pengajuan;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return array
|
|
*/
|
|
public function via($notifiable)
|
|
{
|
|
return ['database'];
|
|
}
|
|
|
|
/**
|
|
* Data yang akan disimpan di database
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return array
|
|
*/
|
|
public function toArray($notifiable)
|
|
{
|
|
return [];
|
|
}
|
|
} |