Deploy Ladill Queue / deploy (push) Successful in 56s
Phases 1–6: tickets, counters, displays, appointments, workflows, rules, analytics, reports, feedback, admin, device API, and Gitea deploy workflow for queue.ladill.com. Co-authored-by: Cursor <cursoragent@cursor.com>
41 lines
865 B
PHP
41 lines
865 B
PHP
<?php
|
|
|
|
namespace App\Notifications\Qms;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class QueueStaffNotification extends Notification implements ShouldQueue
|
|
{
|
|
use Queueable;
|
|
|
|
public function __construct(
|
|
public string $title,
|
|
public string $message,
|
|
public ?string $url = null,
|
|
public string $icon = 'bell',
|
|
) {}
|
|
|
|
/**
|
|
* @return list<string>
|
|
*/
|
|
public function via(object $notifiable): array
|
|
{
|
|
return ['database'];
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function toArray(object $notifiable): array
|
|
{
|
|
return [
|
|
'title' => $this->title,
|
|
'message' => $this->message,
|
|
'url' => $this->url,
|
|
'icon' => $this->icon,
|
|
];
|
|
}
|
|
}
|