mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
Laravel 6
This commit is contained in:
parent
adc1b26243
commit
ab0a40a17e
3 changed files with 7 additions and 5 deletions
|
|
@ -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