mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Laravel 6
This commit is contained in:
parent
adc1b26243
commit
ab0a40a17e
3 changed files with 7 additions and 5 deletions
|
|
@ -10,14 +10,14 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"illuminate/support": "5.8.*",
|
"illuminate/support": "^6.0",
|
||||||
"webpatser/laravel-uuid": "^3.0"
|
"webpatser/laravel-uuid": "^3.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"vlucas/phpdotenv": "^3.3",
|
"vlucas/phpdotenv": "^3.3",
|
||||||
"laravel/telescope": "^2.0",
|
"laravel/telescope": "^2.0",
|
||||||
"laravel/framework": "5.8.*",
|
"laravel/framework": "^6.0",
|
||||||
"orchestra/testbench-browser-kit": "~3.8",
|
"orchestra/testbench-browser-kit": "^4.0",
|
||||||
"league/flysystem-aws-s3-v3": "~1.0",
|
"league/flysystem-aws-s3-v3": "~1.0",
|
||||||
"phpunit/phpcov": "^6.0"
|
"phpunit/phpcov": "^6.0"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,9 @@ class TenantManagerv2
|
||||||
|
|
||||||
public function createTenant(Tenant $tenant): self
|
public function createTenant(Tenant $tenant): self
|
||||||
{
|
{
|
||||||
|
// todo make this atomic
|
||||||
$this->storage->createTenant($tenant);
|
$this->storage->createTenant($tenant);
|
||||||
|
// todo create database, optionally migrate
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ use Illuminate\Database\Eloquent\Model;
|
||||||
// todo move this to a database driver domain?
|
// 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 $guarded = [];
|
||||||
protected $primaryKey = 'uuid';
|
protected $primaryKey = 'uuid';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue