Skip to content

Please improve documentation about matching tag based on slug when calling WithTag() #31

@zedee

Description

@zedee

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 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions