trait TenantRun (View source)

Methods

mixed
run(Closure $callback)

Run a callback in this tenant's context.

Details

mixed run(Closure $callback)

Run a callback in this tenant's context.

This method is atomic and safely reverts to the previous context.

Parameters

Closure $callback

Return Value

mixed