Level 5
You can implement an interface to all your models that will map every json request to your model attributes. Then type hint that interface in your controllers method
Hope this helps
Summer Sale! All accounts are 50% off this week.
I have a JSON request and i need to change all object key names similar on my model object keys, i'm having a difficulty about nested array objects, and also dot notation is not working on this part.
Here is my code on my validation request:
Please or to participate in this conversation.