Is there a Query Builder for form submissions ? #6446
Answered
by
jasonvarga
QuentinGab
asked this question in
Q&A
-
Hi, I wonder if there is a way to query specific form submissions with a Query Builder (all submissions from a user with a hidden user field in the form blueprint for example). I dug the code a little but not found anything like a Query Builder for Form submissions. |
Beta Was this translation helpful? Give feedback.
Answered by
jasonvarga
Aug 4, 2022
Replies: 1 comment 5 replies
-
There is no query builder for submissions at the moment. For now, you'll need to get all the submissions then do a regular collection based filter. $form->submissions()->filter(function ($submission) {
return $submission->field === 'something';
}); |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
QuentinGab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no query builder for submissions at the moment.
For now, you'll need to get all the submissions then do a regular collection based filter.