Coverted FamilyTreeFunc into Laravel syntex;
generateRelationships doesn't work yet, problems need to be fixed