Skip to content

v0.8.4

Choose a tag to compare

@jaspertey jaspertey released this 28 Oct 20:03
c4c5df2

Added

  • WorkspaceContext::enter($workspace, $refresh) and leave(), an explicit enter/leave alongside the scoped run(). Entries nest, and leave() with nothing entered throws LogicException. run() is now enter, try, finally leave, with unchanged behaviour. This lets a tenant switch task (spatie/laravel-multitenancy) hold the workspace context across a job or command (#136).

Upgrading

  • An app with its own WorkspaceContext implementation must add enter() and leave().

What's Changed

Full Changelog: v0.8.3...v0.8.4