mercredi 25 novembre 2015

how to implement sub model in Laravel

my base class is post and many submodel such as : video post , image post all class have specific attribute & inherit parent attrib & all class need specific behaviors

Problem

when find on post model elequent give super model(post) instance, its wrong i need instance of submodel



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire