Skip to content
Advertisement

How to use like with whereIn in laravel

i am using laravel 8 and want use like query with whereIn. it’s my query:

JavaScript

but i get errors:
{message: “Array to string conversion”, exception: “ErrorException”,…}

exception: “ErrorException” line: 39 message: “Array to string conversion”

Advertisement

Answer

I changed my logic and it work for me and return correct result: because i am searching records from multiple fields

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement