1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 21:14:03 +00:00

User impersonation

This commit is contained in:
Samuel Štancl 2020-05-15 07:30:57 +02:00
parent 52476d6298
commit 10a5b80d44
9 changed files with 432 additions and 2 deletions

View file

@ -10,6 +10,7 @@ use Stancl\Tenancy\Events\DomainSaved;
use Stancl\Tenancy\Events\DomainUpdated;
use Stancl\Tenancy\Exceptions\DomainOccupiedByOtherTenantException;
use Stancl\Tenancy\Contracts;
use Stancl\Tenancy\Database\Concerns\CentralConnection;
/**
* @property string $domain
@ -19,6 +20,8 @@ use Stancl\Tenancy\Contracts;
*/
class Domain extends Model implements Contracts\Domain
{
use CentralConnection;
public $guarded = [];
public $casts = [
'is_primary' => 'bool',