mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:24:04 +00:00
wip
This commit is contained in:
commit
a92690cea8
61 changed files with 51214 additions and 0 deletions
22
source/docs/creating-tenants.md
Normal file
22
source/docs/creating-tenants.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
title: Creating Tenants
|
||||
description: Creating tenants with stancl/tenancy — A Laravel multi-database tenancy package that respects your code..
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Creating Tenants {#creating-tenants}
|
||||
|
||||
To create a tenant, you can use
|
||||
|
||||
```php
|
||||
tenant()->create('tenant1.yourapp.com');
|
||||
```
|
||||
|
||||
If you want to set some data while creating the tenant, you can pass an array with the data as the second argument:
|
||||
|
||||
```php
|
||||
tenant()->create('tenant2.yourapp.com', [
|
||||
'plan' => 'free'
|
||||
]);
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue