ldc-legaulois/app/Events/NewNotification.php
2026-09-25 16:25:31 +02:00

28 lines
606 B
PHP

<?php
namespace App\Events;
use App\Enums\NotificationType;
use App\Interfaces\Notifiable;
use App\Models\Customer;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class NewNotification
{
use Dispatchable;
use InteractsWithSockets;
use SerializesModels;
/**
* Create a new event instance.
*/
public function __construct(
public NotificationType $type,
public string $content,
public Notifiable $model,
public ?Customer $customer = null
) {
}
}