When declaratory relief is sought, all persons shall be made parties who have or claim any interest which would be affected by the declaration, and no declaration shall prejudice the rights of persons not parties to the proceeding. In a proceeding which involves the validity of a municipal ordinance or franchise, such municipality shall be made a party, and shall be entitled to be heard. If the law, ordinance, or franchise is alleged to be unconstitutional, the attorney general of the state shall also be served with a copy of the proceeding and be entitled to be heard. If the law is alleged to be unconstitutional, pleadings shall be made pursuant to the requirements in Articles 855.1 and 1845.
La. C.P. § 1880