I am little bit confused about the difference between Laravel eloquent resource and transformers. When i should use resource and when i should use transformers. Did some research on it from laravel documentation and medium article but its look like same purpose.
May be i have wrong concept about that. Any knowledge share from anyone will be appreciate.
Transformer
is a third-party package,in the other hand,Resources
is official – Aikens