SmartCane/laravel_app/app/Events/DownloadStatusPending.php
2024-05-27 16:51:18 +02:00

31 lines
589 B
PHP

<?php
namespace App\Events;
use App\Models\ProjectDownload;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class DownloadStatusPending implements ShouldBroadcast
{
public ProjectDownload $projectDownload;
/**
* Create a new event instance.
*/
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
*/
public function broadcastOn(): array
{
return [
new PrivateChannel('channel-name'),
];
}
}