This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
info12216
Hello, I used OFFLINE Site search for my custom plugin. My plugin Have 2 models Articles and Tags. How can search article by tag? my current code:
$items = Article::with(['tags']) ->where('name', 'like', "%${query}%") ->orWhere('perex', 'like', "%${query}%") ->orWhere('content', 'like', "%${query}%") ->get();
1-2 of 2