add $notificationId to every broadcast notification
This commit is contained in:
1 parent
ec76ca981a
commit
9fbc09017b
10 files changed
+33
-10
No files matched your search
@@ -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