mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
Save makes the Tenant instance persisted
This commit is contained in:
parent
73124cd801
commit
87916bd8e5
2 changed files with 5 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
});
|
||||
}
|
||||
|
||||
// todo should this be a tenancybootstrapper?
|
||||
public function makeQueuesTenantAware()
|
||||
{
|
||||
$this->app['queue']->createPayloadUsing(function () {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ namespace Stancl\Tenancy;
|
|||
|
||||
use ArrayAccess;
|
||||
|
||||
// todo tenant storage
|
||||
|
||||
/**
|
||||
* @internal Class is subject to breaking changes in minor and patch versions.
|
||||
*/
|
||||
|
|
@ -85,6 +87,8 @@ class Tenant implements ArrayAccess, Contracts\Tenant
|
|||
$this->manager->updateTenant($this);
|
||||
}
|
||||
|
||||
$this->persisted = true;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue