1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:04:03 +00:00

Laravel 6

This commit is contained in:
Samuel Štancl 2019-09-08 12:22:18 +02:00
parent adc1b26243
commit ab0a40a17e
3 changed files with 7 additions and 5 deletions

View file

@ -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;
}

View file

@ -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';