mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:44:02 +00:00
24 lines
501 B
PHP
24 lines
501 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\StorageDrivers\Database;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @internal Class is subject to breaking changes in minor and patch versions.
|
|
*/
|
|
class DomainModel extends Model
|
|
{
|
|
use CentralConnection;
|
|
|
|
protected $guarded = [];
|
|
protected $primaryKey = 'domain';
|
|
public $incrementing = false;
|
|
|
|
public function getTable()
|
|
{
|
|
return config('tenancy.storage.db.table_names.DomainModel', 'domains');
|
|
}
|
|
}
|