mutateFormDataBeforeSave doesn't initially save to.
I have a model 'Person' with a couple of columns. With mutateFormDataBeforeSave I want to save a concatenation of those columns to another db column named 'fullname'. I use this code which I added to CreatePerson.php & EditPerson.php:
class Persoon extends Model{ use HasFactory; protected $fillable = ['prefix', 'fname', 'lname', 'suffix', 'alias', 'fullname'];}
class Persoon extends Model{ use HasFactory; protected $fillable = ['prefix', 'fname', 'lname', 'suffix', 'alias', 'fullname'];}
When creating a new Person the fullname doesn't get saved in the db. When (editing) and saving an already created Person the fullname does get (created and) saved.