Skip to content
Discussion options

You must be logged in to vote

@jeremy-at-evosus you'll need to disable the global scope in your resource query.

I believe adding this to your resource will do the trick:

public function getEloquentQuery()
{
    return parent::getEloquentQuery()->withDrafts();
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oddvalue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #45 on February 27, 2024 07:00.