21 lines
489 B
PHP
21 lines
489 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use Illuminate\Broadcasting\Channel;
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
|
|
|
|
class CertPing implements ShouldBroadcastNow
|
|
{
|
|
public function __construct(public string $message) {}
|
|
|
|
public function broadcastOn(): Channel
|
|
{ return new Channel('system.tasks'); }
|
|
|
|
public function broadcastAs(): string
|
|
{ return 'cert.ping'; }
|
|
|
|
public function broadcastWith(): array
|
|
{ return ['message' => $this->message]; }
|
|
}
|