mutateRecordDataUsing in Replicate Action not firing
I try to replicate a record with the prebuilt replicate action and want to change a field with a unique constraint before it is saved via the mutateRecordDataUsing() method as is described in the documentation. But the methods is never called, no mutating, no logging from this method. I just get an SQL error
[2025-07-04 08:17:56] local.ERROR: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "roles_name_guard_name_unique"
The complete getHeaderActions method looks like this:
Solution:Jump to solution
GitHub
mutateRecordDataUsing
not mutating data when used with `Replicate...Package filament/filament Package Version v3.2.40 Laravel Version v11.16.0 Livewire Version v3.5.4 PHP Version PHP 8.2 Problem description When using the mutateRecordDataUsing method with the Repli...
2 Replies
Solution
GitHub
mutateRecordDataUsing
not mutating data when used with `Replicate...Package filament/filament Package Version v3.2.40 Laravel Version v11.16.0 Livewire Version v3.5.4 PHP Version PHP 8.2 Problem description When using the mutateRecordDataUsing method with the Repli...
Yes it does absolutely, thank you!