As of September 1, parental authorization is required for Spanish minors to leave Spain, this includes crossing the border at Ceuta and entering Morocco.

New Procedures for Unaccompanied Minors Leaving Spain
Kawtar Ennaji is a journalist and translator at Morocco World News, MA holder from King Fahd School of Translation