packagist stancl/tenancy v3.5.0

latest releases: v3.8.5, 3.x-dev, dev-fix-1229...
2 years ago

Feature release.

Queue tenancy

This release should fix the issue outlined in our docs:

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.

I rewrote most of the logic of the QueueTenancyBootstrapper and added several new queue tenancy-related tests. The bootstrapper should now support injecting entire models in jobs. On top of that, queues should be easy to test (using calls like $this->artisan('queue:work')) since the bootstrapper has additional logic to improve testing DX.

Added

  • queue:retry is now supported #762

Fixed

New Contributors

Full Changelog: v3.4.6...v3.5.0

Don't miss a new tenancy release

NewReleases is sending notifications on new releases.