I have multiple databases in my config/app.php
, like: database1
, database2
.
I have 1 job that works on both databases, so how can I verify the correct database that needs to be connected by the queue?
e.g when I make migration I use:
php artisan migrate --database=database1
Have any default property to set in the job, such as: $connection
which I can set in the job constructor?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2rtDpmI
via IFTTT
Aucun commentaire:
Enregistrer un commentaire