Loxxer
How to disable scopes for related model?
I can't get it to work. I'm building a table in ProductResource using
I've deactivated global sopes using modifyQueryUsing(), but this only works for the global scopes for the 'Product' model. As you can see, I am creating an ImageColumn from the related model 'Brand'. How can I disable global scopes for this relation? Right now, it's only creating an ImageColumn for scoped brands, but I need images for all brands, independent of the global scopes of the 'Brand' model. How can I managecan I manage this?
I've deactivated global sopes using modifyQueryUsing(), but this only works for the global scopes for the 'Product' model. As you can see, I am creating an ImageColumn from the related model 'Brand'. How can I disable global scopes for this relation? Right now, it's only creating an ImageColumn for scoped brands, but I need images for all brands, independent of the global scopes of the 'Brand' model. How can I managecan I manage this?
3 replies