Support the ongoing development of Laravel.io →

nenadstojanovikj

Joined 13 Jul 2015

Statistics

Threads 1
Replies 4
Solutions 1
Articles 0

Problem with eager loading with pivot table and specified ids

I have User, Tag, Offer models. Every Offer can have multiple Tags and they are written in TaggedAs...

0 Likes
8 Replies
Solved
replied 9 years ago

Login with Username in Laravel 5? Not sure why this isn't working.

That's because some methods are used in that trait. You should keep that line and just override the...

0 Likes
replied 9 years ago

Problem with eager loading with pivot table and specified ids

return Offer::whereDoesntHave('tags', function ($q) use ($tags) { $q->whereIn('id', $tags); }...

0 Likes
Solved
replied 9 years ago

Problem with eager loading with pivot table and specified ids

Zolax said: So you don't want to select tags with specific name right? Yeah, that's what i'm tryin...

0 Likes
replied 9 years ago

Problem with eager loading with pivot table and specified ids

@JuanDMeGon Thanks for the response, but I don't think that is going to help me. I want to minimize...

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.