mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 22:54:03 +00:00
* refactor FilesystemTenancyBootstrapper * clean up tests and improve coverage * minor maintenance mode changes * Improve tenants:migrate --skip-failing logic * make tenants:migrate output consistently formatted * minor RootUrlBootstrapper + misc changes * cache bootstrapper-related improvements * Fix code style (php-cs-fixer) * misc refactor * Fix code style (php-cs-fixer) * add %original_storage_path% to fs bootstrapper, improve default config for cache * rename method * inject concrete implementations where needed instead of abstracts * Fix code style (php-cs-fixer) * refactor DealsWithTenantSymlinks * remove obsolete phpstan ignore --------- Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
26 lines
693 B
PHP
26 lines
693 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Tests\Etc;
|
|
|
|
use Stancl\Tenancy\Database\Contracts\TenantWithDatabase;
|
|
use Stancl\Tenancy\Database\Concerns\HasDatabase;
|
|
use Stancl\Tenancy\Database\Concerns\HasDomains;
|
|
use Stancl\Tenancy\Database\Concerns\HasPending;
|
|
use Stancl\Tenancy\Database\Models;
|
|
|
|
/**
|
|
* @method static static create(array $attributes = [])
|
|
*/
|
|
class Tenant extends Models\Tenant implements TenantWithDatabase
|
|
{
|
|
public static array $extraCustomColumns = [];
|
|
|
|
use HasDatabase, HasDomains, HasPending;
|
|
|
|
public static function getCustomColumns(): array
|
|
{
|
|
return array_merge(parent::getCustomColumns(), static::$extraCustomColumns);
|
|
}
|
|
}
|