diff --git a/docs/source/v2/configuration.blade.md b/docs/source/v2/configuration.blade.md index d5e6911..0d2fc8c 100644 --- a/docs/source/v2/configuration.blade.md +++ b/docs/source/v2/configuration.blade.md @@ -9,7 +9,7 @@ section: content The `config/tenancy.php` file lets you configure how the package behaves. -> **Note:** If the `tenancy.php` file doesn't exist in your `config` directory, you can publish it by running `php artisan vendor:publish --provider='Stancl\Tenancy\TenancyServiceProvider' --tag=config` +> If the `tenancy.php` file doesn't exist in your `config` directory, you can publish it by running `php artisan vendor:publish --provider='Stancl\Tenancy\TenancyServiceProvider' --tag=config` ### `storage_driver, storage` {#storage} diff --git a/docs/source/v2/tenant-manager.blade.md b/docs/source/v2/tenant-manager.blade.md index 7dcf9d8..a7edd81 100644 --- a/docs/source/v2/tenant-manager.blade.md +++ b/docs/source/v2/tenant-manager.blade.md @@ -94,7 +94,7 @@ This method returns a collection of arrays. } ``` -### Deleting a tenant +### Deleting a tenant {#deleting-a-tenant} ```php >>> $tenant = tenancy()->findByDomain('foo.localhost'); @@ -121,3 +121,13 @@ If you want to delete it, get the database name prior to deleting the tenant usi ``` If you want tenant databases to be deleted automatically, you may use the [`delete_database_after_tenant_deletion` configuration]({{ $page->link('configuration#delete-database-after-tenant-deletion') }}) + +### Soft deleting a tenant {#soft-deleting-a-tenant} + +You may also "soft delete" tenants. The `softDelete()` method detaches all domains from a tenant: + +```php +$tenant->softDelete(); +``` + +The list of original domains will be accessible under the `_tenancy_original_domains` key in the tenant storage.