mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Add Artisan::call('tenants:run') example
This commit is contained in:
parent
2769460a1a
commit
c285b45e78
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. ..."
|
||||
```
|
||||
|
||||
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}
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue