mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:11:07 +03:30
41 lines
893 B
PHP
41 lines
893 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\Cycle;
|
|
use Illuminate\Broadcasting\Channel;
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Broadcasting\PresenceChannel;
|
|
use Illuminate\Broadcasting\PrivateChannel;
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class CycleSaved
|
|
{
|
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*/
|
|
|
|
public Cycle $cycle;
|
|
|
|
public function __construct(Cycle $cycle)
|
|
{
|
|
$this->cycle = $cycle;
|
|
}
|
|
|
|
/**
|
|
* Get the channels the event should broadcast on.
|
|
*
|
|
* @return array<int, \Illuminate\Broadcasting\Channel>
|
|
*/
|
|
public function broadcastOn(): array
|
|
{
|
|
return [
|
|
// new PrivateChannel('channel-name'),
|
|
];
|
|
}
|
|
}
|