The judge of the court in which any suit under this chapter may be brought shall allow a reasonable fee to the attorney or attorneys bringing the suit, and may in like manner make a reasonable allowance to guardian ad litem when appointed, which fee and allowances shall be taxed and paid as other costs in the case.