Simple repeater and $get

Hi, When using $get on a simple repeater, the state shown is not the simple array of value shown in the doc, but the internal representation of the repeater.
Repeater::make('invitations')
->simple(
TextInput::make('email')
->email()
->required(),
)
Placeholder::make('foo')->content(fn (Get $get) => dump($get('invitations'))
Repeater::make('invitations')
->simple(
TextInput::make('email')
->email()
->required(),
)
Placeholder::make('foo')->content(fn (Get $get) => dump($get('invitations'))
returns
"invitations" => array:2 [
"cc35096d-4cfc-4207-bbc5-05b70db95fee" => array:1 [
"email" => array:1 [
"email" => null
]
]
"e44bad27-018c-4ef2-af1e-2edd2947687b" => array:1 [
"email" => null
]
]
"invitations" => array:2 [
"cc35096d-4cfc-4207-bbc5-05b70db95fee" => array:1 [
"email" => array:1 [
"email" => null
]
]
"e44bad27-018c-4ef2-af1e-2edd2947687b" => array:1 [
"email" => null
]
]
Is this a known behavior? An issue? Thanks.
1 Reply
charlie
charlie15h ago
Hi @mathieutu, that's the normal behavior if I'm not mistaken (nice to see you finally get into filament ;))

Did you find this page helpful?