Get the name of the user who edits a record.

sooo the problem i have is when i add a user it shows the name of the current user that added it as well as the one who modified it. i want the modified column to be empty until someone tries to edit the form and saves changes
3 Replies
LeandroFerreira
in my opinion, you could do this using mutateFormDataBeforeCreate/ mutateFormDataBeforeSave https://filamentphp.com/docs/2.x/admin/resources/editing-records#customizing-data-before-saving
Filament
Editing records - Resources - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
LeandroFerreira
Filament
Getting started - Resources - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
defaltastra
defaltastraOP2y ago
yep this was it much thanks man 🙏

Did you find this page helpful?