feat: automate guest notification triggers
This commit is contained in:
22
app/Events/GuestPhotoUploaded.php
Normal file
22
app/Events/GuestPhotoUploaded.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use App\Models\Event;
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class GuestPhotoUploaded
|
||||
{
|
||||
use Dispatchable;
|
||||
use InteractsWithSockets;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public Event $event,
|
||||
public int $photoId,
|
||||
public string $guestIdentifier,
|
||||
public ?string $guestName = null,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user