mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 23:54:03 +00:00
Custom tenant collections
This commit is contained in:
parent
1a8d150f2c
commit
5e99fca070
4 changed files with 86 additions and 1 deletions
|
|
@ -7,7 +7,18 @@ namespace Stancl\Tenancy\Contracts;
|
|||
*/
|
||||
interface Tenant
|
||||
{
|
||||
/** Get the name of the key used for identifying the tenant. */
|
||||
public function getTenantKeyName(): string;
|
||||
|
||||
/** Get the value of the key used for identifying the tenant. */
|
||||
public function getTenantKey(): string;
|
||||
|
||||
/** Get the value of an internal key. */
|
||||
public function getInternal(string $key);
|
||||
|
||||
/** Set the value of an internal key. */
|
||||
public function setInternal(string $key, $value);
|
||||
|
||||
/** Run a callback in this tenant's environment. */
|
||||
public function run(callable $callback);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue