mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 23:54:03 +00:00
Automatic mode
This commit is contained in:
parent
2492345280
commit
73fc525126
16 changed files with 154 additions and 40 deletions
|
|
@ -4,10 +4,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
use Stancl\Tenancy\Tenant;
|
||||
|
||||
/**
|
||||
* TenancyBootstrappers are classes that make existing code tenant-aware.
|
||||
* TenancyBootstrappers are classes that make your application tenant-aware automatically.
|
||||
*/
|
||||
interface TenancyBootstrapper
|
||||
{
|
||||
|
|
|
|||
10
src/Contracts/TenantWithDatabase.php
Normal file
10
src/Contracts/TenantWithDatabase.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
use Stancl\Tenancy\DatabaseConfig;
|
||||
|
||||
interface TenantWithDatabase extends Tenant
|
||||
{
|
||||
public function database(): DatabaseConfig;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue