Hi all, I’m working on a functionality where I request additional data from an API (using Remote::get) based on the content of couple of fields during the page.update:after hook. I will save the additional data from the API to the corresponding page with $newPage→update([ ..fields.. ]).
Since the data comes from an external source (the API) it is probably good practice to validate (preferred) or sanitise the data before saving it to the page. What would be the best approach to make sure the data is secure before saving it? Thank you!