ldc-boutique-cnc-sable/app/Events/CustomerPasswordUpdated.php

35 lines
714 B
PHP
Raw Permalink Normal View History

2026-06-14 21:32:07 +02:00
<?php
declare(strict_types=1);
namespace App\Events;
use Domain\Models\ValueObjects\Email;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class CustomerPasswordUpdated
{
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;
/**
* Create a new event instance.
*/
public function __construct(
public readonly Email $email,
) {
}
/** @return array<int,\Illuminate\Broadcasting\Channel> */
public function broadcastOn(): array
{
return [
new PrivateChannel('default'),
];
}
}