add $notificationId to every broadcast notification
This commit is contained in:
@@ -15,15 +15,17 @@ class VolunteerRoleUpdated implements ShouldBroadcastNow
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
|
||||
public $role;
|
||||
public $notificationId;
|
||||
protected $userId;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*/
|
||||
public function __construct($userId, $role)
|
||||
public function __construct($userId, $role, $notificationId)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
$this->role = $role;
|
||||
$this->notificationId = $notificationId;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user