sorry for a newbie question. I run into a problem. I want to search the database for values which an in array. But I have an error:
Array to string conversion
And kinda get why but, I don't know how to make it right. Can you help me please? This is my code:
public function chassis($chassis){
return $this->builder->whereIn('model_type_en', 'LIKE', (array)"%$chassis%");
}
P.S please don't laugh at me :)