31 lines
624 B
PHP
31 lines
624 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Events;
|
||
|
|
|
||
|
|
use Domain\Models\ValueObjects\Email;
|
||
|
|
use Illuminate\Broadcasting\PrivateChannel;
|
||
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
||
|
|
|
||
|
|
readonly class BrevoWebhookCallReceived
|
||
|
|
{
|
||
|
|
use Dispatchable;
|
||
|
|
|
||
|
|
public function __construct(
|
||
|
|
public Email $from,
|
||
|
|
public Email $to,
|
||
|
|
public string $htmlRawContent
|
||
|
|
) {}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get the channels the event should broadcast on.
|
||
|
|
*
|
||
|
|
* @return array<int, \Illuminate\Broadcasting\Channel>
|
||
|
|
*/
|
||
|
|
public function broadcastOn(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
new PrivateChannel('default'),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|