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
in my opinion, you could do this using
mutateFormDataBeforeCreate
/ mutateFormDataBeforeSave
https://filamentphp.com/docs/2.x/admin/resources/editing-records#customizing-data-before-savingFilament
Editing records - Resources - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
If you want to show/hide the field, you can use https://filamentphp.com/docs/2.x/admin/resources/getting-started#hiding-components-contextually
Filament
Getting started - Resources - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
yep this was it much thanks man π