mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Minor console commands docs improvements (#215)
* Make `Tenant list` `List` for consistency, add description to List command * Change ID to tenant key * Update migrate command description * Use IDs instead of tenant keys
This commit is contained in:
parent
bff53fc23e
commit
fe84b4186f
1 changed files with 4 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ Tenant-aware commands run for all tenants by default. The commands also have the
|
||||||
|
|
||||||
## **Migrate** (tenant-aware) {#migrate}
|
## **Migrate** (tenant-aware) {#migrate}
|
||||||
|
|
||||||
`tenants:migrate` is the most important command. To use tenants, you have to be able to migrate their databases.
|
The `tenants:migrate` command migrates databases of your tenants.
|
||||||
|
|
||||||
```
|
```
|
||||||
php artisan tenants:migrate --tenants=8075a580-1cb8-11e9-8822-49c5d8f8ff23
|
php artisan tenants:migrate --tenants=8075a580-1cb8-11e9-8822-49c5d8f8ff23
|
||||||
|
|
@ -60,7 +60,9 @@ Artisan::call('tenants:run', [
|
||||||
'--argument' => ['body=We have launched a new feature.'] // Array
|
'--argument' => ['body=We have launched a new feature.'] // Array
|
||||||
])
|
])
|
||||||
```
|
```
|
||||||
## **Tenant list** {#tenant-list}
|
## **List** {#list}
|
||||||
|
|
||||||
|
The `tenants:list` command lists all existing tenants.
|
||||||
|
|
||||||
```
|
```
|
||||||
php artisan tenants:list
|
php artisan tenants:list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue