diff --git a/app/Models/Banking/Transaction.php b/app/Models/Banking/Transaction.php index d57ec6575..5a893806a 100644 --- a/app/Models/Banking/Transaction.php +++ b/app/Models/Banking/Transaction.php @@ -60,6 +60,8 @@ class Transaction extends Model */ protected static function booted() { + parent::booted(); + static::addGlobalScope(new Scope); } diff --git a/app/Models/Common/Contact.php b/app/Models/Common/Contact.php index 3a207be7b..086dc4c46 100644 --- a/app/Models/Common/Contact.php +++ b/app/Models/Common/Contact.php @@ -49,6 +49,8 @@ class Contact extends Model */ protected static function booted() { + parent::booted(); + static::addGlobalScope(new Scope); } diff --git a/app/Models/Document/Document.php b/app/Models/Document/Document.php index 56416db6a..e371395ce 100644 --- a/app/Models/Document/Document.php +++ b/app/Models/Document/Document.php @@ -79,6 +79,8 @@ class Document extends Model */ protected static function booted() { + parent::booted(); + static::addGlobalScope(new Scope); }