add $notificationId to every broadcast notification
This commit is contained in:
@@ -107,7 +107,8 @@ class EventsController extends Controller
|
||||
foreach ($participants as $user) {
|
||||
broadcast(new EventParticipationCancelled(
|
||||
$user->id,
|
||||
$event
|
||||
$event,
|
||||
$notification->id,
|
||||
));
|
||||
|
||||
$data = [
|
||||
|
||||
@@ -107,6 +107,7 @@ class TasksController extends Controller
|
||||
$user->id,
|
||||
$task,
|
||||
$event,
|
||||
$notification->id,
|
||||
));
|
||||
|
||||
$data = [
|
||||
@@ -171,6 +172,7 @@ class TasksController extends Controller
|
||||
$user->id,
|
||||
$task,
|
||||
$event,
|
||||
$notification->id,
|
||||
));
|
||||
|
||||
$data = [
|
||||
@@ -224,6 +226,7 @@ class TasksController extends Controller
|
||||
$event,
|
||||
FormatDate::formatDate($request["start"]),
|
||||
FormatDate::formatDate($request["end"]),
|
||||
$notification->id,
|
||||
));
|
||||
|
||||
$data = [
|
||||
@@ -306,6 +309,7 @@ class TasksController extends Controller
|
||||
$user->id,
|
||||
$task,
|
||||
$event,
|
||||
$notification->id,
|
||||
));
|
||||
|
||||
$data = [
|
||||
|
||||
@@ -61,7 +61,10 @@ class UserController extends Controller
|
||||
$notification->users()->attach(
|
||||
$admins->pluck('id')->toArray()
|
||||
);
|
||||
broadcast(new UserCreated($user));
|
||||
broadcast(new UserCreated(
|
||||
$user,
|
||||
$notification->id,
|
||||
));
|
||||
|
||||
foreach ($admins as $admin) {
|
||||
$data = [
|
||||
@@ -263,7 +266,8 @@ class UserController extends Controller
|
||||
|
||||
broadcast(new VolunteerRoleUpdated(
|
||||
$user->id,
|
||||
$role
|
||||
$role,
|
||||
$notification->id,
|
||||
));
|
||||
|
||||
$data = [
|
||||
|
||||
Reference in New Issue
Block a user