tenancy-docs
tenancy-docs copied to clipboard
Little or no detail on how Queues work
The documentation for Queues isn't clear enough without a played scenario or clear example.
An example like; I have a Scheduled job that sends email to all subscribers every Tuesday.
- Do I schedule my job like I would always do in a regular laravel app and don't worry about tenancy because it will be taken care of by the
QueueTenancyBootstrapper - Do I loop through all tenants in my Job handle() method?
- Do I loop through all tenants in my console/kernel.php inside of the call method like so
$schedule->call(initialize tenant and dispatch....)->tuesdays()
Using a clear example would make it easier to understand even for a newbie