From a8f5002d911bceb6c655a3b091df77856577c34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 17 Aug 2019 17:30:12 +0200 Subject: [PATCH] wip --- source/docs/console-commands.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/docs/console-commands.md b/source/docs/console-commands.md index 08422a51..401a0e4b 100644 --- a/source/docs/console-commands.md +++ b/source/docs/console-commands.md @@ -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. ```php +$tenant = tenant()->create('tenant1.localhost'); + \Artisan::call('tenants:migrate', [ '--tenants' => [$tenant['uuid']] ]);