mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
3.x redesign
This commit is contained in:
parent
857122540f
commit
f8f354c323
229 changed files with 201175 additions and 22440 deletions
21
source/docs/v2/tenancy-initialization.blade.md
Normal file
21
source/docs/v2/tenancy-initialization.blade.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: Tenancy Initialization
|
||||
description: Tenancy Initialization..
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Tenancy Initialization {#tenancy-initialization}
|
||||
|
||||
Tenancy can be initialized using the following methods on `Stancl\Tenancy\TenantManager`:
|
||||
- `initializeTenancy($tenant)`
|
||||
- `initialize($tenant)`
|
||||
- `init($domain)`
|
||||
|
||||
Similarly, tenancy can be ended using:
|
||||
- `endTenancy()`
|
||||
- `end()`
|
||||
|
||||
You can use these methods in `php artisan tinker`.
|
||||
|
||||
[Tenant Routes]({{ $page->link('tenant-routes') }}) have the `InitializeTenancy` middleware applied to them. That middleware automatically initializes tenancy for the current hostname.
|
||||
Loading…
Add table
Add a link
Reference in a new issue