diff --git a/src/Database/Scope/Scope.php b/src/Database/Scope/Scope.php index 6513cd4..5442f4a 100644 --- a/src/Database/Scope/Scope.php +++ b/src/Database/Scope/Scope.php @@ -188,7 +188,7 @@ protected function applyToQuery($query, $table) return $query->where(function ($query) use ($table) { $query->whereNull("{$table}.scope"); - if ($this->allowNullScope || ! is_null($this->scope)) { + if (! is_null($this->scope)) { $query->orWhere("{$table}.scope", $this->scope); } });