diff --git a/composer.json b/composer.json index 6348a703..cb963c2a 100644 --- a/composer.json +++ b/composer.json @@ -10,14 +10,14 @@ } ], "require": { - "illuminate/support": "5.8.*", + "illuminate/support": "^6.0", "webpatser/laravel-uuid": "^3.0" }, "require-dev": { "vlucas/phpdotenv": "^3.3", "laravel/telescope": "^2.0", - "laravel/framework": "5.8.*", - "orchestra/testbench-browser-kit": "~3.8", + "laravel/framework": "^6.0", + "orchestra/testbench-browser-kit": "^4.0", "league/flysystem-aws-s3-v3": "~1.0", "phpunit/phpcov": "^6.0" }, diff --git a/src/TenantManagerv2.php b/src/TenantManagerv2.php index df15593d..811177d6 100644 --- a/src/TenantManagerv2.php +++ b/src/TenantManagerv2.php @@ -39,7 +39,9 @@ class TenantManagerv2 public function createTenant(Tenant $tenant): self { + // todo make this atomic $this->storage->createTenant($tenant); + // todo create database, optionally migrate return $this; } diff --git a/src/TenantModel.php b/src/TenantModel.php index 49e94047..9907b541 100644 --- a/src/TenantModel.php +++ b/src/TenantModel.php @@ -9,9 +9,9 @@ use Illuminate\Database\Eloquent\Model; // todo move this to a database driver domain? /** - * @final Class is subject to breaking changes in minor and patch versions. + * @internal Class is subject to breaking changes in minor and patch versions. */ -final class TenantModel extends Model +class TenantModel extends Model { protected $guarded = []; protected $primaryKey = 'uuid';