1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:14:02 +00:00

Save makes the Tenant instance persisted

This commit is contained in:
Samuel Štancl 2019-09-06 18:59:40 +02:00
parent 73124cd801
commit 87916bd8e5
2 changed files with 5 additions and 0 deletions

View file

@ -89,6 +89,7 @@ class TenancyServiceProvider extends ServiceProvider
});
}
// todo should this be a tenancybootstrapper?
public function makeQueuesTenantAware()
{
$this->app['queue']->createPayloadUsing(function () {

View file

@ -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;
}