call parent booted
This commit is contained in:
@@ -13,6 +13,8 @@ class Bill extends Document
|
|||||||
{
|
{
|
||||||
protected static function booted()
|
protected static function booted()
|
||||||
{
|
{
|
||||||
|
parent::booted();
|
||||||
|
|
||||||
static::addGlobalScope(new ReplaceDeprecatedColumns);
|
static::addGlobalScope(new ReplaceDeprecatedColumns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,6 +13,8 @@ class Invoice extends Document
|
|||||||
{
|
{
|
||||||
protected static function booted()
|
protected static function booted()
|
||||||
{
|
{
|
||||||
|
parent::booted();
|
||||||
|
|
||||||
static::addGlobalScope(new ReplaceDeprecatedColumns);
|
static::addGlobalScope(new ReplaceDeprecatedColumns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user