rowActions query override #154
Replies: 1 comment
-
Example:
RestoreFileAction is nearly identical to DestroyRowAction but with ->restore() in the action function. The issue is, the FileUpload closure in rowActions uses the default query of
the query onlyTrashed() should (and does for the table display only) make the query file_uploads.deleted_on is not null The initial count query works a treat with onlyTrashed;
TLDR; i need the model closure for rowActions to include onlyTrashed() also |
Beta Was this translation helpful? Give feedback.
-
Is it possible to override the rowActions model so that it doesn't run the default closure query by id? I'm leveraging softDelete, and even though I'm calling onlyTrashed() within the table query, the action query doesn't override the model so it always returns a 404 because the query is only searching non-trashed results on the model.
Beta Was this translation helpful? Give feedback.
All reactions