call parent booted

This commit is contained in:
Denis Duliçi 2021-01-22 14:41:08 +03:00
parent dbab1d93c3
commit 3841bc755c
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,8 @@ class Bill extends Document
{
protected static function booted()
{
parent::booted();
static::addGlobalScope(new ReplaceDeprecatedColumns);
}

View File

@ -13,6 +13,8 @@ class Invoice extends Document
{
protected static function booted()
{
parent::booted();
static::addGlobalScope(new ReplaceDeprecatedColumns);
}