beforeSave / mutateFormDataBeforeSave on a Resource (v3)

Hi guys,

I need to execute some code prior to a record saving (both on initial save and update), but I can't seem to find any documentation for v3 which shows how to do this. I've tried doing what is outlined in the v2 docs, but it doesn't seem to be getting called.

I'm adding the beforeSave / mutateFormDataBeforeSave functions in the Resource class for my model.

Any ideas what I should be doing here?
Was this page helpful?