The city council shall provide by ordinance for appointment of counsel for indigents, or others, as now or hereafter required by law, and shall by such ordinance provide for compensation to be paid to counsel so appointed. The mayor shall appoint counsel in such cases from among the attorneys at law residing in the county and those counties adjoining the county, or from among those attorneys at law who have previously consented to serve as appointed counsel in such court.