mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 03:14:04 +00:00
523 B
523 B
| title | description | extends | section |
|---|---|---|---|
| Creating Tenants | Creating tenants with stancl/tenancy — A Laravel multi-database tenancy package that respects your code.. | _layouts.documentation | content |
Creating Tenants
To create a tenant, you can use
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:
tenant()->create('tenant2.yourapp.com', [
'plan' => 'free'
]);