Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ScriptMint's avatar

Api Resource with multiple version of same model

Hi Everyone, I had a query. If a need to have two different version (say one with name & id and another with name, id, xyz etc) of API Resource for the same model, do I need to create two different Resources for the same model? I can only see one method toArray() inside an API Resource.

0 likes
1 reply

Please or to participate in this conversation.