Generic implementation of an eloquent repository (including a multi-tenant version)