Default field value of a hidden field in a repeatable section always the same value
maul75 opened this issue · comments
maul75 commented
- Laravel Version: 10.48.4
- Nova Version: 4.33.1
- PHP Version: 8.3.2
- Database Driver & Version:
- Operating System and Version: #.#
- Browser type and version: #.#
- Reproduction Repository: https://github.com/###/###
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
I solved this currently with setting this values with the afterCreate and afterUpdate hooks.