Skip to content

How do I save/create a model with a relation? #3678

Answered by ThomasWeber
8funtik8 asked this question in Help
Discussion options

You must be logged in to vote

At a quick glance one thing I see that seems to be missing is a BelongsTo relation defined in the User model.
https://docs.adonisjs.com/guides/models/relationships#belongsto

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@8funtik8
Comment options

Answer selected by 8funtik8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants