Added support for custom pivot tables in belongsToMany relations