delete EventParticipationCancelled event

This commit is contained in:
2026-03-28 15:49:58 +01:00
parent 0b3e9142b5
commit bfec1752e0
@@ -1,47 +0,0 @@
<?php
namespace App\Events;
use App\Models\Event;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class EventParticipationCancelled implements ShouldBroadcastNow
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $userId;
public $event;
public $notificationId;
/**
* Create a new event instance.
*/
public function __construct($userId, Event $event, $notificationId)
{
$this->userId = $userId;
$this->event = $event;
$this->notificationId = $notificationId;
}
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
*/
public function broadcastOn(): array
{
return [
new PrivateChannel('user.' . $this->userId),
];
}
public function broadcastAs()
{
return 'event.participation.cancelled';
}
}