Change ID to tenant key

This commit is contained in:
lukinovec 2022-10-05 17:14:04 +02:00
parent 865eb4e3b8
commit 1f9c441877

View file

@ -9,7 +9,7 @@ section: content
The package comes with some useful artisan commands. The package comes with some useful artisan commands.
Tenant-aware commands run for all tenants by default. The commands also have the `--tenants` option which lets you specify IDs of the tenants for which the command will run. Tenant-aware commands run for all tenants by default. The commands also have the `--tenants` option which lets you specify keys of the tenants for which the command will run.
> Note: To include multiple tenants using CLI, you can use multiple `--tenants=<...>` options. If you're calling the command using `Artisan::call()`, `--tenants` has to be an array. > Note: To include multiple tenants using CLI, you can use multiple `--tenants=<...>` options. If you're calling the command using `Artisan::call()`, `--tenants` has to be an array.
@ -79,4 +79,4 @@ You can delete specific tenants' cache by using the `--tags` option on `cache
php artisan cache:clear --tags=tenantdbe0b330-1a6e-11e9-b4c3-354da4b4f339 php artisan cache:clear --tags=tenantdbe0b330-1a6e-11e9-b4c3-354da4b4f339
``` ```
The tag is derived from `config('tenancy.cache.tag_base') . $id`. The tag is derived from `config('tenancy.cache.tag_base') . $tenantKey`.