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
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();

didier28788
didier28788

Hello, I have the same question. Did you find a way?

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.