0
I executed the Adonis command
make:model Caredperson -mc
so that the controller and Migration were created together. After executing the command, I tried to change the name of the model, Migration and controller to Caredpeople, but when doing the belongsToMany('App/Models/Caredpeople') relationship of the Adonis referencing the model, the keys searched in the pivot table and the name of the pivot table are named "person" and not "people", I tried to pass the keys and table but did not work... After that, I tried to delete the model, controller and Migration and then run the creation command again with the correct name:
make:model Caredpeople -mc
but when running, the file created for all three comes with the word "person", for example model: Caredperson; controller: Caredpersoncontroller; Migration: cared_person; even if I executed the command by passing a different name.
I tried to download the project on another machine and execute the command, hoping to be some cache because it happens the same... Someone has an idea how to solve?
In my view this answer will solve your problem.
– Amauri