Files
keystone/app/Events/Servers/ServerProvisioned.php
2025-04-07 16:39:53 +01:00

34 lines
733 B
PHP

<?php
namespace App\Events\Servers;
use App\Models\Server;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
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'),
];
}
}