Support the ongoing development of Laravel.io →

bakicdj

Joined 6 Aug 2014

Statistics

Threads 1
Replies 2
Solutions 1
Articles 0

Filter search results by tags using eloquent

I have table structure like this posts | posts_tags | tags _________________________ id |...

0 Likes
4 Replies
Solved
replied 10 years ago

Filter search results by tags using eloquent

I found the solution. If this can be done in better way, please let me know. $tagIDs = [1,2,3]; $se...

0 Likes
Solved
replied 10 years ago

Filter search results by tags using eloquent

johndavedecano said: $posts = Post::whereHas('tags', function($q) { $tagsIDs = [5,17,22];...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.