fixed tenancy issue

This commit is contained in:
Denis Duliçi 2021-01-21 14:37:10 +03:00
parent 0486689134
commit b5a7457f25
3 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,8 @@ class Transaction extends Model
*/ */
protected static function booted() protected static function booted()
{ {
parent::booted();
static::addGlobalScope(new Scope); static::addGlobalScope(new Scope);
} }

View File

@ -49,6 +49,8 @@ class Contact extends Model
*/ */
protected static function booted() protected static function booted()
{ {
parent::booted();
static::addGlobalScope(new Scope); static::addGlobalScope(new Scope);
} }

View File

@ -79,6 +79,8 @@ class Document extends Model
*/ */
protected static function booted() protected static function booted()
{ {
parent::booted();
static::addGlobalScope(new Scope); static::addGlobalScope(new Scope);
} }