Skip to content

Commit

Permalink
Update querying interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Friars committed Mar 17, 2024
1 parent c0aac1c commit 16a64c7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Contracts/PublisherQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,19 @@ public function onlyPublished(): Builder&PublisherQueries;
* Scope the query to models that are not in the published state
*/
public function onlyDraft(): Builder&PublisherQueries;

/**
* Scope the query to models that are not queued for deletion
*/
public function withoutQueuedDeletes(): Builder&PublisherQueries;

/**
* Scope the query to models that are queued for deletion
*/
public function onlyQueuedDeletes(): Builder&PublisherQueries;

/**
* Scope the query to models that are either queued for deletion or not
*/
public function withQueuedDeletes(): Builder&PublisherQueries;
}

0 comments on commit 16a64c7

Please sign in to comment.