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?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire