Replies: 1 comment 1 reply
-
You can use the following: use Illuminate\Support\Arr;
$this->whereIn($column, Arr::wrap($values)); |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I am converting old CI code to Laravel and in some case I can receive value or array. I am using Builder::macro in project, but propose to add method to builder like:
What do you think guys?
Beta Was this translation helpful? Give feedback.
All reactions