fixed composition check #1433

This commit is contained in:
denisdulici 2020-05-02 15:13:49 +03:00
parent 93e05ea6f5
commit 351faf7cfe
3 changed files with 4 additions and 2 deletions

View File

@ -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'];
/** /**

View File

@ -12,6 +12,8 @@ class Setting extends Eloquent
protected $table = 'settings'; protected $table = 'settings';
protected $tenantable = true;
public $timestamps = false; public $timestamps = false;
/** /**

View File

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