add $notificationId to every broadcast notification
This commit is contained in:
@@ -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