mecjos
7 months ago

What is the difference between API Resource and Eloquent Collections

Posted 7 months ago by mecjos

I am new on using Laravel api things. I'm trying to understand what's the differece between api resources and eloquent native collection results. It's not clear yet for me. I'm using postman to analyze data but I can't see huge diffrenece. As far as I see api resources just wrap with data tag all datas.. :) Most probably it's not like that. If someone guide me about the differences and advantages, I'll be so glad. Thank you.

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