Argument #1 ($query) must be of type App\Exports\Builder, #3753
albertmoreno
started this conversation in
General
Replies: 2 comments
-
Sounds like you didn't import the Builder FQN at the top of the file |
Beta Was this translation helpful? Give feedback.
0 replies
-
right ! use Illuminate\Database\Eloquent\Builder; thanks a lot ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I want to make a query just like this:
return Entry::query()
->whereDate('start_date', '>=', $this->start_date)
->whereDate('end_date', '<=', $this->end_date)
->whereHas('experiment_type', function (Builder $query) use ($lab_id) {
$query->where('lab_id', '=', $lab_id);
});
, and i get an error, how can i do ??
the error is because of ->whereHas('experiment_type', function (Builder $query) use ($lab_id) {
$query->where('lab_id', '=', $lab_id);
});
thanks
Beta Was this translation helpful? Give feedback.
All reactions