mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:34:03 +00:00
Initial commit
This commit is contained in:
commit
deb3ad77f5
19 changed files with 1283 additions and 0 deletions
15
src/Interfaces/StorageDriver.php
Normal file
15
src/Interfaces/StorageDriver.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Interfaces;
|
||||
|
||||
interface StorageDriver
|
||||
{
|
||||
public function identifyTenant(string $domain): array;
|
||||
public function getAllTenants(array $uuids = []): array;
|
||||
public function getTenantById(string $uuid, $fields = []): array;
|
||||
public function getTenantIdByDomain(string $domain): ?string;
|
||||
public function createTenant(string $domain, string $uuid): array;
|
||||
public function deleteTenant(string $uuid): bool;
|
||||
public function get(string $uuid, string $key);
|
||||
public function put(string $uuid, string $key, $value);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue