mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:24:04 +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": {
|
||||
"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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue