unch-cms/app/Models/Tenant.php

24 lines
478 B
PHP
Raw Normal View History

2022-09-02 11:25:50 +07:00
<?php
namespace App\Models;
use Stancl\Tenancy\Database\Models\Tenant as BaseTenant;
use Stancl\Tenancy\Contracts\TenantWithDatabase;
use Stancl\Tenancy\Database\Concerns\HasDatabase;
use Stancl\Tenancy\Database\Concerns\HasDomains;
class Tenant extends BaseTenant implements TenantWithDatabase
{
use HasDatabase, HasDomains;
protected $table = 'tenants';
public static function getCustomColumns(): array
{
return [
'id',
'plan',
];
}
}