-
-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to send message to all users and attach file? #234
Comments
Hello, @Mioleris! I'm not sure that this package is good choice for announcements. Especially if you are not planning to receive answers from all 20k users. For such a things I'd recommend to use standard Laravel Notifications. Accordingly to attachments, yes you need to implement this feature by yourself. This package provide only base text message functionality. Some more explanations: #162 |
@a-komarev - hmm, I believe the native notifications will do the same thing (using the DB option) - unless I'm missing something? @Mioleris - do you need the users to reply to the message/notification? If not, maybe you can get away with having site-wide notifications (1 record) with an optional attachment (1 record), and have an additional table for read/unread statuses (20k records). |
@cmgmyr You are right. It will create the same thing, but it wouldn't create Thread for each notification, it wouldn't add 2 participants to it. And if you need just to send announcements and don't need to receive any feedback in the chat - using messenger for it is redundantly in my point of view. |
@a-komarev agreed :) |
Thanks guys for explanation :) I think I will stick with second option as @cmgmyr commented because I don't need to receive replies from users :) |
@Mioleris Yep, that's seems to be the best approach. |
Hi, I want to send message to all user as main admin. But there is about 20k users so every time when I want to send message to all users it adds 20k records in DB every time. Someone is using like this or there is other way ?
And how about attachments in message ? Should I create attachments and messages_attachments tables to manage message attachments by my self?
The text was updated successfully, but these errors were encountered: