mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
Tenant contract, Tenancy bootstrappers, drop predis
This commit is contained in:
parent
98cb49b1c0
commit
f04ca349bd
13 changed files with 158 additions and 47 deletions
|
|
@ -6,12 +6,10 @@ namespace Stancl\Tenancy;
|
|||
|
||||
use ArrayAccess;
|
||||
|
||||
// todo laravel events instead of custom events?
|
||||
|
||||
/**
|
||||
* @internal Class is subject to breaking changes in minor and patch versions.
|
||||
*/
|
||||
class Tenant implements ArrayAccess
|
||||
class Tenant implements ArrayAccess, Contracts\Tenant
|
||||
{
|
||||
use Traits\HasArrayAccess;
|
||||
|
||||
|
|
@ -56,7 +54,7 @@ class Tenant implements ArrayAccess
|
|||
return app(static::class)->withData($data)->persisted();
|
||||
}
|
||||
|
||||
public function persisted()
|
||||
protected function persisted()
|
||||
{
|
||||
$this->persisted = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue