use the new booted method

This commit is contained in:
Denis Duliçi
2021-01-19 17:27:19 +03:00
parent 597633264d
commit 3a7277faa0
5 changed files with 11 additions and 23 deletions

View File

@ -73,14 +73,12 @@ class Document extends Model
public $cloneable_relations = ['items', 'recurring', 'totals'];
/**
* The "booting" method of the model.
* The "booted" method of the model.
*
* @return void
*/
protected static function boot()
protected static function booted()
{
parent::boot();
static::addGlobalScope(new Scope);
}