Model Woman extends Homospaien Model Man extends Homosapien
Table "homosapien" contains all fields common to "Woman" and "Man" Tables "woman" and "man", obviously only contain fields unique to each gender.
Anyone got a link to correct docs on how to do this? I want to be able to load $man=Man($id) which would load the row from "man" AND populate the fields from "homosapien"
I can't test it at this moment, but should work.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community