Files
keystone/app/Events/Servers/ServerProvisioned.php
2025-04-07 13:49:54 +01:00

37 lines
837 B
PHP

<?php
namespace App\Events\Servers;
use App\Models\Server;
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 ServerProvisioned
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public function __construct(
protected Server $server,
)
{
//
}
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
*/
public function broadcastOn(): array
{
return [
// new PrivateChannel('channel-name'),
];
}
}