Hi @salahy some months ago I responded the exact same doubt
Check the best answer. https://laracasts.com/discuss/channels/eloquent/polymorphic-relationships-advice?page=1#reply=530318
Regards
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I doing a project where I need to call different api's but all serve the same thing. but I can't figure out what is the best practice to do it
what I have basically is API's for pharmacies all of them serve 3 things
you should know, some of them is XML some is SOAP and others JSON, each of them different structure .. etc
but all of them I need to retain unified api structure for the 3 methods.
I was trying to use repository pattern but still not sure
any tips could be helpful Thanks
Please or to participate in this conversation.