6 months ago

BelongsToMany, but only sometimes

Posted 6 months ago by SPresnac


I have a model with a function that returns a "BelongsToMany" and it works. But now, i want this "belongsToMany" to perform a "gimme all" under some circumstances (an attribute is "true"). How to do this?

Thanks in advance...

Please sign in or create an account to participate in this conversation.