Nested Relationships data not beeing saved

I'm currently working on a form to my Aluno model. Aluno belongs to Pessoa and Pessoa belongs to Endereco:

Aluno->pessoa->endereco

Even with relations defined, only Aluno and Pessoa are saved on create, for some reason, Endereco is not. All three are saved normally on Edit, i suppose that is because of belongsTo, but i'm not 100% sure and if is, is there a way to workaround? Here's the gist with the files. I can also create a test case if necessary. https://gist.github.com/JonatasBSM/17556af27f1d128c318010b62c574fe3
Captura_de_tela_de_2024-08-09_14-02-43.png
Gist
GitHub Gist: instantly share code, notes, and snippets.
Was this page helpful?