I'm expecting about 200 - 400 emails to be sent every 2 - 3 weeks in one go. This is based on the event and the event being a project
published on the website. So once it is published, an automatic email goes out to all the subscribers. I'm using Laravel 5.3
and the new notifications API
.
So the code at the moment simply looks like this
$subscribers->each(function($subscriber) use($project) {
$subscriber->notify(new ProjectPublished($project));
});
Would it make sense to implement ShouldQueue
in this scenario?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2gVB4dO
via IFTTT
Aucun commentaire:
Enregistrer un commentaire