You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've struggled a bit when I tried to find some articles I had tagged with multiple words. I've been figuring out for an hour an a half why if in database everything was set correctly, the related entities were empty. Finally I found that last parameter on scopeWithTag has a type parameter, where you can choose if you want the search based by slug or name. I was calling withTag using tag name but not slug, hence the empty results when I had a tag composed of multiple words (a phrase).
Could you please improve the documentation specifying tags can be matched by slug or name? It will save some time for other people.
The text was updated successfully, but these errors were encountered:
Hi!
I've struggled a bit when I tried to find some articles I had tagged with multiple words. I've been figuring out for an hour an a half why if in database everything was set correctly, the related entities were empty. Finally I found that last parameter on
scopeWithTag
has atype
parameter, where you can choose if you want the search based by slug or name. I was callingwithTag
using tag name but not slug, hence the empty results when I had a tag composed of multiple words (a phrase).Could you please improve the documentation specifying tags can be matched by slug or name? It will save some time for other people.
The text was updated successfully, but these errors were encountered: