laravel / nova-issues

556 stars 34 forks source link

Default field value of a hidden field in a repeatable section always the same value #6340

Open maul75 opened 7 months ago

maul75 commented 7 months ago

Description:

If I set a hidden field in a repeatable item with a random string as default value, I always have the same value in all repeatable fields?

Hidden::make('hash')->default(Str::random(8))

maul75 commented 7 months ago

I solved this currently with setting this values with the afterCreate and afterUpdate hooks.