Joint cast between create and update

Hello, I would like format the value of my lastname input in uppercase when created and updated. Is there a way to do it only one time or should I do it with the both lifecycle hook ?
5 Replies
LeandroFerreira
LeandroFerreira6mo ago
->dehydrateStateUsing(fn (string $state): string => str($state)->upper())
->dehydrateStateUsing(fn (string $state): string => str($state)->upper())
?
Frédéric
FrédéricOP6mo ago
Thx it's exacly that ! But When I update I need to refresh the page to see it. Can I update the value of my input ?
LeandroFerreira
LeandroFerreira6mo ago
in EditPage?
Frédéric
FrédéricOP6mo ago
That's work thx !!!
Want results from more Discord servers?
Add your server