BelongsToMany, but only sometimes
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.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!