mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Document optional DB creation fix #47
This commit is contained in:
parent
2d3badb168
commit
af8e403504
2 changed files with 17 additions and 0 deletions
16
docs/source/v2/disabling-db-creation.blade.md
Normal file
16
docs/source/v2/disabling-db-creation.blade.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
title: Disabling Database Creation
|
||||
description: Disabling Database Creation
|
||||
extends: _layouts.documentation
|
||||
section: content
|
||||
---
|
||||
|
||||
# Disabling Database Creation {#disabling-database-creation}
|
||||
|
||||
DB creation can be disabled for all tenants (`tenancy.create_database` config), or for individual tenants during tenant creation:
|
||||
|
||||
```php
|
||||
Tenant::new()->withData([
|
||||
'_tenancy_create_database' => false,
|
||||
])->save();
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue