We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using SoftDeletes on my model and if I try to query trashed models it doesn't seem to work.
First I've tried this:
$item = $itemRepo->withTrashed()->all();
It says there is no method withTrashed() on my repository. Then I tried to make criteria:
withTrashed()
... public function apply($model, Repository $repository) { return $model->withTrashed(); } ...
...but it says there is no method withTrashed() on Builder class. It seems $model here is the query builder, not the model itself.
$model
Same goes for onlyTrashed(). Is there any way to use these methods with your Repository package?
onlyTrashed()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using SoftDeletes on my model and if I try to query trashed models it doesn't seem to work.
First I've tried this:
It says there is no method
withTrashed()
on my repository. Then I tried to make criteria:...but it says there is no method
withTrashed()
on Builder class. It seems$model
here is the query builder, not the model itself.Same goes for
onlyTrashed()
. Is there any way to use these methods with your Repository package?The text was updated successfully, but these errors were encountered: