I have 4 tables product, customers, salesmen and invoice
And i am doing some filter like
Include customer, Include Salesmen
Include customer, Exclude Salesmen
In my case the query is same all time but i need to apply it to different Eloquent every time.(Product Model with Invoice table, Customers Models with Invoice Table, Salesmen Model with Invoice Table)
Is there any way to make our query as constant or common so i can apply that to different Model.