Hi I am trying to write a search function that finds all the service name with the keyword
$serviceids = Service::where('service_name', 'like', '%' . $key . '%')->pluck('service_recordid');
Here is what I have right now but when I search for 'rent' this result also returns 'parent' since rent is included. What can I do to make the condition to be a unique word of its own?