mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:34:04 +00:00
Make TenantModel final
This commit is contained in:
parent
f4421af6c5
commit
72baa45126
4 changed files with 11 additions and 2 deletions
|
|
@ -9,6 +9,9 @@ use Stancl\Tenancy\Jobs\QueuedTenantDatabaseDeleter;
|
|||
use Illuminate\Database\DatabaseManager as BaseDatabaseManager;
|
||||
use Stancl\Tenancy\Exceptions\DatabaseManagerNotRegisteredException;
|
||||
|
||||
/**
|
||||
* @final Class is subject to breaking changes in minor and patch versions.
|
||||
*/
|
||||
final class DatabaseManager
|
||||
{
|
||||
public $originalDefaultConnection;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace Stancl\Tenancy\StorageDrivers;
|
||||
|
||||
use Stancl\Tenancy\Tenant;
|
||||
use Stancl\Tenancy\TenantModel as Tenant;
|
||||
use Stancl\Tenancy\Interfaces\StorageDriver;
|
||||
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ use Stancl\Tenancy\Interfaces\UniqueIdentifierGenerator;
|
|||
use Stancl\Tenancy\Exceptions\CannotChangeUuidOrDomainException;
|
||||
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
||||
|
||||
/**
|
||||
* @final Class is subject to breaking changes in minor and patch versions.
|
||||
*/
|
||||
final class TenantManager
|
||||
{
|
||||
use BootstrapsTenancy;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ namespace Stancl\Tenancy;
|
|||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Tenant extends Model
|
||||
/**
|
||||
* @final Class is subject to breaking changes in minor and patch versions.
|
||||
*/
|
||||
final class TenantModel extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
protected $primaryKey = 'uuid';
|
||||
Loading…
Add table
Add a link
Reference in a new issue