Get models with complex conditions and pagination

I've added a handy method that makes able to get models with a custom wheres in whereIns. I'm sure it needs to be refactored, because there are some duplicate code but you've got the idea.