I think you have to create 2 relations 1 to many with the good foreign keys in the 2 methods hasMany and the 2 methods belongsTo.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community