mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Merge branch 'master' of github.com:stancl/tenancy-docs
This commit is contained in:
commit
ebebb21809
12 changed files with 50 additions and 35 deletions
|
|
@ -24,7 +24,7 @@ Available storage drivers:
|
|||
- `data_column` - the name of column that holds the tenant's data in a single JSON string
|
||||
- `custom_columns` - list of keys that shouldn't be put into the data column, but into their own column
|
||||
- `connection` - what database connection should be used to store tenant data (`null` means the default connection)
|
||||
- `table_names` - the table names used by each the models that come with the storage driver
|
||||
- `table_names` - the table names used by the models that come with the storage driver
|
||||
|
||||
> Note: Don't use the models directly. You're supposed to use [storage]({{ $page->link('tenant-storage') }}) methods on `Tenant` objects.
|
||||
|
||||
|
|
@ -50,14 +50,12 @@ You can set the suffix to `.sqlite` if you're using sqlite and want the files to
|
|||
|
||||
If `tenancy.redis.tenancy` is set to true, connections listed in `tenancy.redis.prefixed_connections` will be prefixed with `config('tenancy.redis.prefix_base') . $id`.
|
||||
|
||||
> Note: You need phpredis. Predis support will dropped by Laravel on version 7.
|
||||
> Note: You need phpredis. Predis support will dropped by Laravel in version 7.
|
||||
|
||||
### `cache` {#cache}
|
||||
|
||||
The `CacheManager` instance that's resolved when you use the `Cache` or the `cache()` helper will be replaced by `Stancl\Tenancy\CacheManager`. This class automatically uses [tags](https://laravel.com/docs/master/cache#cache-tags). The tag will look like `config('tenancy.cache.tag_base') . $id`.
|
||||
|
||||
If you need to store something in global, non-tenant cache,
|
||||
|
||||
### `filesystem` {#filesystem}
|
||||
|
||||
The `storage_path()` will be suffixed with a directory named `config('tenancy.filesystem.suffix_base') . $id`.
|
||||
|
|
@ -94,7 +92,7 @@ The aliases are used by the [event system]({{ $page->link('event-system') }})
|
|||
|
||||
### `features` {#bootstrappers}
|
||||
|
||||
Features are similar to bootstrappers, but they are executed regardless of whether tenancy has been initialized or not. Their purpose is to provide additional functionality that is not necessary for the package to work. Things like easy redirects to tenant domains, tags in Telescope, etc.
|
||||
Features are similar to bootstrappers, but they are executed regardless of whether tenancy has been initialized or not. Their purpose is to provide additional functionality beyond what is necessary for the package to work. Things like easy redirects to tenant domains, tags in Telescope, etc.
|
||||
|
||||
### `home_url` {#home-url}
|
||||
|
||||
|
|
@ -103,11 +101,13 @@ When a user tries to visit a non-tenant route on a tenant domain, the `PreventAc
|
|||
### `migrate_after_creation` {#migrate-after-creation}
|
||||
|
||||
Run migrations after creating a tenant.
|
||||
|
||||
- Default: `false`
|
||||
|
||||
### `delete_database_after_tenant_deletion` {#delete-database-after-tenant-deletion}
|
||||
|
||||
Delete the tenant's database after deleting the tenant.
|
||||
|
||||
- Default: `false`
|
||||
|
||||
### `queue_database_creation` {#queue-database-creation}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue