why not using jsut one model for cellphone and laptop and have a
type_id property to distinguish between those? i think you'd be off the best with that.
you could then even create a method on the model or using a respository to get cellphones or laptops only.(
Try looking int single-table-inheritance - basically you define an abstract parent class and extend it with some specific subclasses that can encapsulate their unique attributes.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us