D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
ghanempharmacy.com
/
app
/
Jobs
/
Filename :
SendNotificationJob.php
back
Copy
<?php namespace App\Jobs; use App\Traits\PushNotificationTrait; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; class SendNotificationJob implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, PushNotificationTrait; /** * Create a new job instance. */ public function __construct( protected array|object $notification ) { } /** * Execute the job. */ public function handle(): void { $this->sendPushNotificationToTopic($this->notification); } }