diff --git a/src/Contracts/TenantCannotBeCreatedException.php b/src/Contracts/TenantCannotBeCreatedException.php index 2bfae8e7..fead49ea 100644 --- a/src/Contracts/TenantCannotBeCreatedException.php +++ b/src/Contracts/TenantCannotBeCreatedException.php @@ -1,10 +1,12 @@ message = 'Tenant cannot be craeted. Reason: ' . $this->reason(); } -} \ No newline at end of file +} diff --git a/src/TenantManagerv2.php b/src/TenantManagerv2.php index 1ef50505..5a9b1230 100644 --- a/src/TenantManagerv2.php +++ b/src/TenantManagerv2.php @@ -6,8 +6,8 @@ namespace Stancl\Tenancy; use Illuminate\Foundation\Application; use Illuminate\Contracts\Console\Kernel as Artisan; -use Stancl\Tenancy\Contracts\TenantCannotBeCreatedException; use Stancl\Tenancy\Exceptions\NoTenantIdentifiedException; +use Stancl\Tenancy\Contracts\TenantCannotBeCreatedException; use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException; /** @@ -46,7 +46,7 @@ class TenantManagerv2 $this->storage->createTenant($tenant); $this->database->create($tenant); - + if ($this->migrateAfterCreation()) { $this->artisan->call('tenants:migrate', [ '--tenants' => [$tenant['id']],