VentureCraft/revisionable

eager load revision from revision_type field model

t0n1zz opened this issue · 0 comments

Hi, i want to do eager load to related into model that have revision in revisionable_type field, so for example i have revisionable_type is App\Report and inside the App\Report there is some foreign key for company_id. So i want to only load all revision for revisionable_type of App\Report where the company_id is a1000

how to do that? in normal eloquent model i can easily do eager loading and put where clause inside it. But how about this revision?