FilamentF
Filament13mo ago
Code A

How to Access Updated Latitude and Longitude in beforeSave in Filament?

I want to validate the newly input latitude and longitude in Filament before saving the data to the database, using the beforeSave lifecycle method. However, I'm having trouble ensuring that the updated values entered in the form are available in beforeSave. When I dd the data, the latitude and longitude seem to be missing or reflect old values.

How can I ensure that the latest latitude and longitude values from the form are properly sent and accessible in beforeSave? Has anyone encountered a similar issue?
image.png
Was this page helpful?