-
I'm starting to use Nylo to develop an app. Since I’ve already used Laravel, it was generally very easy to understand most of Nylo’s features. However, I don’t really understand how models work. In the documentation, I only see how to create them, but not how to actually use them or where they should be implemented. Could you explain how I should use them, and if possible, provide an example of how they’re supposed to be used? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @JHdezC, Typically, you'd model the objects that your app needs to use. Hope that makes sense. https://nylo.dev/docs/6.x/networking#morphing-json-payloads-to-models |
Beta Was this translation helpful? Give feedback.
Hi @JHdezC,
Typically, you'd model the objects that your app needs to use.
It's common to model JSON payloads from API services and then use that model to represent the payload.
Hope that makes sense.
https://nylo.dev/docs/6.x/networking#morphing-json-payloads-to-models