mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 10:14:04 +00:00
wip
This commit is contained in:
parent
065f283a4b
commit
a8f5002d91
1 changed files with 2 additions and 0 deletions
|
|
@ -22,6 +22,8 @@ php artisan tenants:migrate --tenants=8075a580-1cb8-11e9-8822-49c5d8f8ff23
|
||||||
|
|
||||||
You can use these commands outside the command line as well. If you want to migrate a tenant's database in a controller, you can use the `Artisan` facade.
|
You can use these commands outside the command line as well. If you want to migrate a tenant's database in a controller, you can use the `Artisan` facade.
|
||||||
```php
|
```php
|
||||||
|
$tenant = tenant()->create('tenant1.localhost');
|
||||||
|
|
||||||
\Artisan::call('tenants:migrate', [
|
\Artisan::call('tenants:migrate', [
|
||||||
'--tenants' => [$tenant['uuid']]
|
'--tenants' => [$tenant['uuid']]
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue