Laravel validating that key in array is in an array of given strings
I'm building an API that takes in an array of 'additional_data' but I want some control over the fields that can be passed in. Take the following JSON: { "name": "Joe Bloggs", "additional_data": { "type": "example", "other_type": "example" } }…