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:
parent
1833622170
commit
7a7200fd25
4 changed files with 16 additions and 14 deletions
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue