Closed ghost closed 4 years ago
How is Laravel supposed to know what tenant to use? The tenant
connection is dynamically populated based on the identified tenant (by hostname, console argument, or manually), so simply running artisan queue:work
would have no way of knowing what the tenant connection is.
Instead, we strongly recommend keeping your queued jobs table on the system database, and letting your job objects themselves track what tenant they're related to.
fletch3555, Thank you for your reply. I rethink how to deal with my queued jobs table.
Hi, I am using this package for developing software.
I stored Laravel jobs in tenant database.
And then I execute
php artisan queue:work
from my console.Then error message execute like below.
I set the config/queue.php connections -> connect -> 'tenant'
Is ther any way to output jobs in tenant database? Or is queue in hyn/multi-tenant 5.5 not yet compatible with the laravel 7.20.0?
Controller
TestMailJob.php
config/queue.php
.env