1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:54:03 +00:00

Specify namespace on global functions (fix #35)

This commit is contained in:
Samuel Štancl 2019-04-23 17:02:43 +02:00
parent e1c4dc8934
commit 7f323aaa94
15 changed files with 42 additions and 44 deletions

View file

@ -49,7 +49,7 @@ class Rollback extends RollbackCommand
$this->input->setOption('database', 'tenant');
tenant()->all($this->option('tenants'))->each(function ($tenant) {
\tenant()->all($this->option('tenants'))->each(function ($tenant) {
$this->line("Tenant: {$tenant['uuid']} ({$tenant['domain']})");
$this->database->connectToTenant($tenant);