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

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