ldc-legaulois/app/Events/NewNotification.php

29 lines
606 B
PHP
Raw Permalink Normal View History

2024-07-12 16:33:26 +02:00
<?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,
2026-09-25 16:25:31 +02:00
public ?Customer $customer = null
2024-07-12 16:33:26 +02:00
) {
}
}