Level 102
If possible I would suggest you filter it in your query. Resources are for presentation.
Also its a good idea to post some code. If we can see what you are trying to do, we might be able to give some better help
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi everybody. I have some troubles, I want to filter data before to pass it to view, but Resources is not working. Is there any idea, how I can do it, as in API Resources toArray() method?
Please or to participate in this conversation.