mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Improved Documentation Search (#61)
* chore: (Improve documentation search for V3) * fix: checks for mispelled words * fix: mispelled words * fix spaces and syntax * Update multi-database-tenancy.blade.md Co-authored-by: Samuel Stancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
0549607899
commit
a4645b3abd
42 changed files with 158 additions and 158 deletions
|
|
@ -5,11 +5,11 @@ section: content
|
|||
---
|
||||
|
||||
|
||||
# Console commands
|
||||
# Console commands {#console-commands}
|
||||
|
||||
The package comes with some useful artisan commands.
|
||||
|
||||
## **Migrate**
|
||||
## **Migrate** {#migrate}
|
||||
|
||||
The most important command. To use tenants, you have to be able to migrate their databases.
|
||||
|
||||
|
|
@ -23,14 +23,14 @@ You may use multiple `--tenants=<...>` options.
|
|||
|
||||
> Note: By default, the migrations should be in database/migrations/tenant. If you wish to use a different path, you may use the `--path` argument.
|
||||
|
||||
## **Rollback & seed**
|
||||
## **Rollback & seed** {#rollback-and-seed}
|
||||
|
||||
- Rollback: `tenants:rollback`
|
||||
- Seed: `tenants:seed`
|
||||
|
||||
Similarly to `migrate`, these commands accept a `--tenants` option.
|
||||
|
||||
## **Migrate fresh**
|
||||
## **Migrate fresh** {#migrate-fresh}
|
||||
|
||||
This package also offers a simplified, tenant-aware version of `migrate:fresh`. It runs `db:wipe` and `tenants:migrate` on the tenant's database.
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ You may use it like this:
|
|||
php artisan tenants:migrate-fresh --tenants=8075a580-1cb8-11e9-8822-49c5d8f8ff23
|
||||
```
|
||||
|
||||
## **Run**
|
||||
## **Run** {#run}
|
||||
|
||||
You can use the `tenants:run` command to run your own commands for tenants.
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ If your command's signature were `email:send {--queue} {--subject=} {body}`, yo
|
|||
php artisan tenants:run email:send --tenants=8075a580-1cb8-11e9-8822-49c5d8f8ff23 --option="queue=1" --option="subject=New Feature" --argument="body=We have launched a new feature. ..."
|
||||
```
|
||||
|
||||
## **Tenant list**
|
||||
## **Tenant list** {#tenant-list}
|
||||
|
||||
```
|
||||
php artisan tenants:list
|
||||
|
|
@ -59,7 +59,7 @@ Listing all tenants.
|
|||
[Tenant] id: 49670df0-1a87-11e9-b7ba-cf5353777957 @ dev.localhost
|
||||
```
|
||||
|
||||
## **Selectively clearing tenant cache**
|
||||
## **Selectively clearing tenant cache** {#selectively-clearing-tenant-cache}
|
||||
|
||||
You can delete specific tenants' cache by using the `--tags` option on `cache:clear`:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue