11 months ago

Polymorphic relationships advice

Posted 11 months ago by yunior

Hi guys, I am fairly new with Laravel and would need some advice. I've got Eshop model that can be of different type (woocommerce, magento, prestashop etc.). For each Eshop there are associated data specific for each type like eshop domain, access token etc. Based on this data I am able to communicate with eshop API. What would be your approach in this situation? Polymorphic relationships? Thanks in advance.

Please sign in or create an account to participate in this conversation.