Create a Third Table With Laravel (eloquent)

I hope you can help me with this exercise. I have to track the entry and exit of each person and display it in one row.

The models created so far are people and movements with the following relationships:
Person-> hasMany (Movement :: class); Movement-> belongsTo (Person :: class);

Created the two tables and relations, now I have to create the third (person_movements). I am attaching the very descriptive scheme directly here 👇

enter image description here

Thanks for your help 🙏😊

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum