mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-13 02:34:03 +00:00
Update docs for 2.x
This commit is contained in:
parent
60d320ad6a
commit
71287b36cb
9 changed files with 114 additions and 22 deletions
|
|
@ -44,7 +44,7 @@ You may use the second argument to specify the key(s) as a string/array.
|
|||
|
||||
### Getting the current tenant
|
||||
|
||||
One more way to get the current [tenant]({{ $page->link('tenant') }}) is to call `getTenant()` on `TenantManager`:
|
||||
One more way to get the current [tenant]({{ $page->link('tenants') }}) is to call `getTenant()` on `TenantManager`:
|
||||
|
||||
```php
|
||||
tenancy()->getTenant()
|
||||
|
|
@ -53,7 +53,7 @@ tenancy()->getTenant()
|
|||
If you want to get the value of a specific key from the array, you can an argument with the key.
|
||||
|
||||
```php
|
||||
tenancy()->getTenant('id'); // Does the same thing as tenant('id')
|
||||
tenancy()->getTenant('id') // Does the same thing as tenant('id')
|
||||
```
|
||||
|
||||
### Getting all tenants
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue