fixed composition check #1433
This commit is contained in:
parent
93e05ea6f5
commit
351faf7cfe
@ -14,6 +14,8 @@ abstract class Model extends Eloquent
|
|||||||
{
|
{
|
||||||
use Cachable, SearchString, SoftDeletes, Sortable, Tenants;
|
use Cachable, SearchString, SoftDeletes, Sortable, Tenants;
|
||||||
|
|
||||||
|
protected $tenantable = true;
|
||||||
|
|
||||||
protected $dates = ['deleted_at'];
|
protected $dates = ['deleted_at'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -12,6 +12,8 @@ class Setting extends Eloquent
|
|||||||
|
|
||||||
protected $table = 'settings';
|
protected $table = 'settings';
|
||||||
|
|
||||||
|
protected $tenantable = true;
|
||||||
|
|
||||||
public $timestamps = false;
|
public $timestamps = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,8 +4,6 @@ namespace App\Traits;
|
|||||||
|
|
||||||
trait Tenants
|
trait Tenants
|
||||||
{
|
{
|
||||||
protected $tenantable = true;
|
|
||||||
|
|
||||||
public function isTenantable()
|
public function isTenantable()
|
||||||
{
|
{
|
||||||
return (isset($this->tenantable) && ($this->tenantable === true));
|
return (isset($this->tenantable) && ($this->tenantable === true));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user