mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 17:04:03 +00:00
Fix asset publishing
This commit is contained in:
parent
4d6003eec0
commit
0508429e0f
7 changed files with 22 additions and 15 deletions
|
|
@ -21,9 +21,7 @@ class Tenant extends Model implements Contracts\Tenant
|
|||
{
|
||||
use Concerns\CentralConnection,
|
||||
Concerns\GeneratesIds,
|
||||
Concerns\HasDataColumn {
|
||||
Concerns\HasDataColumn::getCasts as dataColumnCasts;
|
||||
}
|
||||
Concerns\HasDataColumn;
|
||||
|
||||
protected $table = 'tenants';
|
||||
protected $primaryKey = 'id';
|
||||
|
|
@ -44,13 +42,6 @@ class Tenant extends Model implements Contracts\Tenant
|
|||
return new TenantCollection($models);
|
||||
}
|
||||
|
||||
public function getCasts()
|
||||
{
|
||||
return array_merge($this->dataColumnCasts(), [
|
||||
'id' => $this->getIncrementing() ? 'integer' : 'string',
|
||||
]);
|
||||
}
|
||||
|
||||
public static function internalPrefix(): string
|
||||
{
|
||||
return config('tenancy.internal_prefix');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue