1
0
Fork 0
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:
Samuel Štancl 2019-09-06 18:51:34 +02:00
parent 98cb49b1c0
commit f04ca349bd
13 changed files with 158 additions and 47 deletions

View file

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