Laravel PHP Get name via model

Job ID: 33999130

Budget: $10 – $30 AUD

I need to get the name of a position that is retrieved via name attribute, this is a really quick task I'm just inexperienced to make a third connection to a third table to get the name attribute, bids of more than $10 will be ignored.

#1 Model/Table MasterShiftAllocations

id

#2 Model/Table MasterShifts

id (link)
position_id

#3 Model/Table Positions

id (link to position_id)
name
Related categories: PHP MySQL Laravel