Closed kwazaro closed 6 years ago
What if you try to group your users by role, and then you can find them as shown here
Should I send notification to every user of specific role separately? Or I can do it for whole group of users at the same time?
yo can do a foreach
ej.
foreach($users as $user){ Notification::notify(Notification::KEY_NEW_MESSAGE, $user->id, $message->id); }
Hello! How can I send notification for multiple users (for example, by role). I need a group of managers to see the notifications, but I can pass only one $admin_id in Notification::notify() function. Is there a way to notify all registered users, or other group of users?