Skip to content
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

Closed
Mioleris opened this issue May 17, 2017 · 6 comments
Closed

How to send message to all users and attach file? #234

Mioleris opened this issue May 17, 2017 · 6 comments

Comments

@Mioleris
Copy link

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?

@antonkomarev
Copy link
Contributor

antonkomarev commented May 17, 2017

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

@cmgmyr
Copy link
Owner

cmgmyr commented May 17, 2017

@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).

@antonkomarev
Copy link
Contributor

@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.

@cmgmyr
Copy link
Owner

cmgmyr commented May 17, 2017

@a-komarev agreed :)

@Mioleris
Copy link
Author

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 :)

@antonkomarev
Copy link
Contributor

@Mioleris Yep, that's seems to be the best approach.

@cmgmyr cmgmyr closed this as completed May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants