mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-15 03:34:03 +00:00
3.x redesign
This commit is contained in:
parent
857122540f
commit
f8f354c323
229 changed files with 201175 additions and 22440 deletions
|
|
@ -1,16 +0,0 @@
|
|||
---
|
||||
title: Usage
|
||||
description: Usage..
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Usage {#usage}
|
||||
|
||||
This chapter describes usage of the package. That includes creating tenants, deleting tenants, storing data in the tenant storage.
|
||||
|
||||
The package comes with two helpers - `tenancy()` and `tenant()`.
|
||||
- `tenancy()` returns an instance of [`TenantManager`]({{ $page->link('tenant-manager') }})
|
||||
- `tenant()` returns an instance of the current tenant, or null if no tenant hs been identified yet. You can pass an argument to this helper, to get a value from the tenant storage: `tenant('plan')` is identical to [`tenant()->get('plan')`]({{ $page->link('tenant-storage') }}).
|
||||
|
||||
The package also comes with two facades. `Tenancy` -- for `TenantManager` -- and `Tenant` -- for the current `Tenant`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue