-
Hi, Given the code
I want to have |
Beta Was this translation helpful? Give feedback.
Answered by
teikun-86
Nov 20, 2022
Replies: 1 comment 1 reply
-
Put the ...
->when($companyId, function ($query, $companyId) {
return $query->Company($companyId);
}, function ($query) use ($excludeCompanyId) {
return $query->DontBelongsToCompany($excludeCompanyId);
})
... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pildit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put the
->DontBelongsToCompany()
as the third parameter on->when()
like: