I have an eloquent query in Laravel that looks something like this:
return $query->with('status', 'bank')
->whereHas('status', function (Builder $builder) {
return $builder->whereIn('bank_status', ['MANUAL', 'VALIDATED,ACTIVATED']);
});
I am looking for any possible values that will match the given: ['MANUAL', 'VALIDATED,ACTIVATED']
I do have comma seperated values .
I am not sure if its the right choice to use whereIn
or should I go with rawsql find_in_set()
which is the best to use in this case ?
If anyone has an answer would be nice to convert my query builder using find_in_set()
thanks