mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 02:54:06 +00:00
Initial draft
This commit is contained in:
parent
4ff82a950d
commit
5d7d208e2f
19 changed files with 376 additions and 186 deletions
11
src/Contracts/ManagesDatabaseUsers.php
Normal file
11
src/Contracts/ManagesDatabaseUsers.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
use Stancl\Tenancy\DatabaseConfig;
|
||||
|
||||
interface ManagesDatabaseUsers
|
||||
{
|
||||
public function createUser(DatabaseConfig $databaseConfig): void;
|
||||
public function deleteUser(DatabaseConfig $databaseConfig): void;
|
||||
}
|
||||
|
|
@ -6,6 +6,13 @@ namespace Stancl\Tenancy\Contracts;
|
|||
|
||||
interface TenantDatabaseManager
|
||||
{
|
||||
/**
|
||||
* Return the config key that separates databases (e.g. 'database' or 'schema').
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSeparator(): string;
|
||||
|
||||
/**
|
||||
* Create a database.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue