add $notificationId to every broadcast notification
This commit is contained in:
@@ -15,13 +15,15 @@ class UserCreated implements ShouldBroadcastNow
|
||||
|
||||
|
||||
public $user;
|
||||
public $notificationId;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*/
|
||||
public function __construct(User $user)
|
||||
public function __construct(User $user, $notificationId)
|
||||
{
|
||||
$this->user = $user;
|
||||
$this->notificationId = $notificationId;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user