diff --git a/src/Concerns/QueriesPublishableModels.php b/src/Concerns/QueriesPublishableModels.php index 65f8d33..dc82d0d 100644 --- a/src/Concerns/QueriesPublishableModels.php +++ b/src/Concerns/QueriesPublishableModels.php @@ -46,9 +46,8 @@ public function where($column, $operator = null, $value = null, $boolean = 'and' protected function draftAllowedQuery($query, $column, $operator = null, $value = null, $boolean = 'and') { - return $query->where(fn ($query) => - $query->where(fn ($query) => $this->publishedWhere($query, $column, $operator, $value, $boolean)) - ->orWhere(fn ($query) => $this->unpublishedWhere($query, $column, $operator, $value, $boolean)) + return $query->where(fn ($query) => $query->where(fn ($query) => $this->publishedWhere($query, $column, $operator, $value, $boolean)) + ->orWhere(fn ($query) => $this->unpublishedWhere($query, $column, $operator, $value, $boolean)) ); }