laravel notification: how to mark as read specific data['cartId']?

60 Views Asked by At

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.

0

There are 0 best solutions below