mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 16:24:04 +00:00
Fix #29 add Tenancy facade
This commit is contained in:
parent
88d4e67516
commit
987c54f04e
4 changed files with 36 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ Read the [Storage driver](#storage-driver) section for more information.
|
|||
|
||||
## Obtaining a `TenantManager` instance
|
||||
|
||||
You can use the `tenancy()` and `tenant()` helpers to resolve `Stancl\Tenancy\TenantManager` out of the service container. These two helpers are exactly the same, the only reason there are two is nice syntax. `tenancy()->init()` sounds better than `tenant()->init()` and `tenant()->create()` sounds better than `tenancy()->create()`.
|
||||
You can use the `tenancy()` and `tenant()` helpers to resolve `Stancl\Tenancy\TenantManager` out of the service container. These two helpers are exactly the same, the only reason there are two is nice syntax. `tenancy()->init()` sounds better than `tenant()->init()` and `tenant()->create()` sounds better than `tenancy()->create()`. **You may also use the `Tenancy` facade.**
|
||||
|
||||
### Creating a new tenant
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue