I have a database notification where type is customerOrderNorification
.
in this notificaion I put data cartId
:
public function toArray($notifiable)
{
return [
'cartId' => $this->cartItem->id,
];
}
I want to when a seller accept one order, system make all notification of all users markAsRead where data['cartId'] == $specific_id
.
how to do this ?
thanks.