Applying Queries to the Collection

Hello,

I need community help to develop my october cms skills.

My problem is here:

I have field on my services blueprint.

    featured:
        label: Show on homepage
        type: checkbox

I want to show only selected (which featured checkbox is checked) post on services page.

What is my mistake on code?

Thank in advance!

I think try where('featured', true)

1 Like