So, I was trying to re-structure a collection from a model inside Api resource:
but it seems the api resource class is not working for some reason, it still returns the original structure of the User model, I even added dd() inside the resource class and it's not being triggered.
I'm new to 11 version, is there a problem with my implementation? please help.