The exit of Portuguese minors, as well and the entry and exit of foreign minors who are legal residents in this country is ruled by Decree-Law 138/2006, of 26 July (Article 23º) and by Act 23/2007, of 4th July (Article 31º), with the amendments of Act 29