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

Minor fixes for using the package in an app

This commit is contained in:
Samuel Štancl 2020-05-16 11:56:32 +02:00
parent 1833622170
commit 7a7200fd25
4 changed files with 16 additions and 14 deletions

View file

@ -22,10 +22,7 @@ class Domain extends Model implements Contracts\Domain
{
use CentralConnection;
public $guarded = [];
public $casts = [
'is_primary' => 'bool',
];
protected $guarded = [];
public static function booted()
{

View file

@ -26,8 +26,8 @@ class Tenant extends Model implements Contracts\Tenant
}
protected $table = 'tenants';
public $primaryKey = 'id';
public $guarded = [];
protected $primaryKey = 'id';
protected $guarded = [];
public function getTenantKeyName(): string
{