When building an API, you may need a transformation layer that sits between your models and the json responses that are actually returned to your application's users. Has any feature known in adonisjs that can easily work with this method? One sample here or in laravel5.5
Hey @douglaszaltron ! 馃憢
If it's only for a model I recommend you to write your own serializer (here's the default one).
If it's for all requests you can write a middleware that is executed before sending the response.
Closing since no response from the issue reporter and not actionable as well
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Hey @douglaszaltron ! 馃憢
If it's only for a model I recommend you to write your own serializer (here's the default one).
If it's for all requests you can write a middleware that is executed before sending the response.