Skip to content

Commit

Permalink
Merge pull request #21 from joshuablum/patch-1
Browse files Browse the repository at this point in the history
Check for Entry status instead of published bool
  • Loading branch information
werner-freytag committed Feb 17, 2023
2 parents 1732640 + ef0c84e commit 5dcae41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected function publishedEntries(?array $entryTypes = null): \Illuminate\Supp
return false;
}

return $entry->published();
return $entry->status() === 'published';
});
}

Expand Down

0 comments on commit 5dcae41

Please sign in to comment.