mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Merge branch 'master' of github.com:stancl/tenancy
This commit is contained in:
commit
5a19f1769e
4 changed files with 9 additions and 4 deletions
|
|
@ -10,10 +10,10 @@ return [
|
||||||
'id_generator' => Stancl\Tenancy\UUIDGenerator::class,
|
'id_generator' => Stancl\Tenancy\UUIDGenerator::class,
|
||||||
|
|
||||||
'domain_model' => Domain::class,
|
'domain_model' => Domain::class,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The list of domains hosting your central app.
|
* The list of domains hosting your central app.
|
||||||
*
|
*
|
||||||
* Only relevant if you're using the domain or subdomain identification middleware.
|
* Only relevant if you're using the domain or subdomain identification middleware.
|
||||||
*/
|
*/
|
||||||
'central_domains' => [
|
'central_domains' => [
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Database\Concerns;
|
namespace Stancl\Tenancy\Database\Concerns;
|
||||||
|
|
||||||
use Stancl\Tenancy\Exceptions\DomainOccupiedByOtherTenantException;
|
use Stancl\Tenancy\Exceptions\DomainOccupiedByOtherTenantException;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Database\Concerns;
|
namespace Stancl\Tenancy\Database\Concerns;
|
||||||
|
|
||||||
trait HasInternalKeys
|
trait HasInternalKeys
|
||||||
|
|
@ -29,4 +31,4 @@ trait HasInternalKeys
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Database\Concerns;
|
namespace Stancl\Tenancy\Database\Concerns;
|
||||||
|
|
||||||
use Stancl\Tenancy\Contracts\Tenant;
|
use Stancl\Tenancy\Contracts\Tenant;
|
||||||
|
|
@ -9,7 +11,6 @@ trait TenantRun
|
||||||
public function run(callable $callback)
|
public function run(callable $callback)
|
||||||
{
|
{
|
||||||
/** @var Tenant $this */
|
/** @var Tenant $this */
|
||||||
|
|
||||||
$originalTenant = tenant();
|
$originalTenant = tenant();
|
||||||
|
|
||||||
tenancy()->initialize($this);
|
tenancy()->initialize($this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue