diff --git a/framework/core/src/Post/Post.php b/framework/core/src/Post/Post.php index d603c0e03..1dba8616a 100644 --- a/framework/core/src/Post/Post.php +++ b/framework/core/src/Post/Post.php @@ -171,7 +171,7 @@ class Post extends AbstractModel */ public function scopeAllTypes(Builder $query) { - return $this->removeGlobalScopes($query); + return $query->withoutGlobalScopes(); } /**