remove VolunteerRoleUpdated event

This commit is contained in:
2026-03-28 15:31:10 +01:00
parent 2374774577
commit 17fa90ab9d
-47
View File
@@ -1,47 +0,0 @@
<?php
namespace App\Events;
use App\Models\Event;
use App\Models\Task;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class VolunteerRoleUpdated implements ShouldBroadcastNow
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $role;
public $notificationId;
protected $userId;
/**
* Create a new event instance.
*/
public function __construct($userId, $role, $notificationId)
{
$this->userId = $userId;
$this->role = $role;
$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 'volunteer.role.updated';
}
}