F
Filament16mo ago
_max28

Accessing form values after saving

i need to monitor the change of a field in the form inside the afterSave() method, i know i can access the values ​​via $this->record. But I don't know how I can access the original values ​​and the modified ones. How could I do?
6 Replies
LeandroFerreira
LeandroFerreira16mo ago
$this->record $this->data ?
_max28
_max28OP16mo ago
which of these two gives me the original field and which the modified one?
LeandroFerreira
LeandroFerreira16mo ago
data = form fields record = model
_max28
_max28OP16mo ago
should I use the before save or after save to see the changes made to the fields?
LeandroFerreira
LeandroFerreira16mo ago
$this->data is available before and after save
_max28
_max28OP16mo ago
Alright thank you
Want results from more Discord servers?
Add your server