Item::where('name', 'LIKE', '%'.$key.'%')->orWhere('description', 'LIKE', '%'.$key.'%')->paginate(15);
Maybe you don't need to merge if you use this. Not tested.
Thanks, it works.
But it is possible there is serveral "$key", so i have to repeat this query for each "$key", and merge all the results.
Is it possible?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community