mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
3.5.0 queue changes
This commit is contained in:
parent
30a9997963
commit
9003b7ab16
1 changed files with 0 additions and 2 deletions
|
|
@ -10,8 +10,6 @@ If you're using the `QueueTenancyBootstrapper`, queued jobs dispatched from the
|
|||
|
||||
**However**, note that if you're using the `DatabaseTenancyBootstrapper` and the `database` queue driver, or the `RedisTenancyBootstrapper` and the `redis` queue driver, you will need to make sure the jobs don't get dispatched into the tenant context for these drivers.
|
||||
|
||||
Note: You cannot inject model **instances** with the `SerializesModels` trait, because it tries to hydrate the models before the `tenant` connection is created. Inject model ids instead and use `find()` in the handle method.
|
||||
|
||||
### Database queue driver {#database-queue-driver}
|
||||
|
||||
To force the database queue driver to use the central connection, open your `queue.connections.database` config and add the following line:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue