OrganizationChildrenเป็น Laravel model ที่ผูกกับตารางorganization_childrenในฐานข้อมูลOrganizationChildrenประกอบด้วยฟิลด์parent_organization_idและchild_organization_id$org1->idและ$org2->idเป็นค่าidของOrganizationโดยมีค่าเป็น1และ2ตามลำดับ
ถ้าเราต้องการ query ข้อมูล โดยใช้ SQL ดังนี้
select * from `organization_children` where (`parent_organization_id` = 1 and `child_organization_id` = 2) or (`parent_organization_id` = 2 and `child_organization_id` = 1)