Add Artisan::call('tenants:run') example

This commit is contained in:
lukinovec 2022-08-26 14:22:29 +02:00
parent 2769460a1a
commit c285b45e78

View file

@ -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}
``` ```