Developers and real estate agents should be banned from being local councillors and political donations and spending should be capped in council elections, NSW Opposition Leader Luke Foley has declared.

Mr Foley also called on the NSW government to scrap a decision to let councillors vote on planning change from which they could benefit, amid the furore surrounding Auburn deputy mayor Salim Mehajer.

Luke Foley wants laws changed so councillors such as Salim Mehajer do not benefit as developers.

Cr Mehajer's lavish wedding last weekend, for which he blocked off a local street, has prompted scrutiny of his political and business dealings.

A property developer, Cr Mehajer has been able to vote on matters potentially benefiting him, thanks to the changes to councillors' voting rights in 2012 introduced by then local government minister Don Page.