mercredi 27 mars 2019

Eloquent Polymorphic Relationship Hierarchy

I am building an application that will allow for transacting in different currencies. It will interface with different API’s for different currencies.

I will be supporting approximately 10-20 currencies, and want to have a polymorphic relationship where my Currency model morphs to, for example, Euro.

Is this a good use case for polymorphic relations? How can this be done properly?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire