mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Add Artisan::call('tenants:run') example (#191)
This commit is contained in:
parent
5517531c73
commit
7b6a692b59
1 changed files with 10 additions and 0 deletions
|
|
@ -50,6 +50,16 @@ 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. ..."
|
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. ..."
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or using `Artisan::call()`:
|
||||||
|
|
||||||
|
```php
|
||||||
|
Artisan::call('tenants:run', [
|
||||||
|
'commandname' => 'email:send', // String
|
||||||
|
'--tenants' => ['8075a580-1cb8-11e9-8822-49c5d8f8ff23'] // Array
|
||||||
|
'--option' => ['queue=1', 'subject=New Feature'] // Array
|
||||||
|
'--argument' => ['body=We have launched a new feature.'] // Array
|
||||||
|
])
|
||||||
|
```
|
||||||
## **Tenant list** {#tenant-list}
|
## **Tenant list** {#tenant-list}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue