add $notificationId to every broadcast notification

This commit is contained in:
Giovanni committed 2026-03-19 18:22:36 +01:00
1 parent 9fbc09017b
commit 2252ac9547
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ class EventsController extends Controller
if (Carbon::now()->lessThanOrEqualTo($event->end)) {
$notification = Notification::create([
'content' => "L'événement '{$event->name}' a été supprimé. Vous n'y participez donc plus."
'content' => "L'événement {$event->name} a été supprimé. Vous n'y participez donc plus."
]);
$notification->users()->attach($participants->pluck('id'));