Skip to content

Commit d41dd5d

Browse files
committed
Give the images scope a decoy namespace
1 parent e9ab73c commit d41dd5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Models/Traits/HasImages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function bootHasImages()
3838
});
3939

4040
// Automatically eager load the images relationship
41-
static::addGlobalScope('images', function (Builder $builder) {
41+
static::addGlobalScope('decoy.images', function (Builder $builder) {
4242
$builder->with('images');
4343
});
4444
}

0 commit comments

Comments
 (0)