© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
kennyhorna

How to set default values (to persist) on repeater

Hi, I'm building a table to specify the opening hours of businesses. So, I want to populate a repeater with weekdays. Currently I'm doing this:
->default([
    [
        'day' => 'monday',
        'start' => null,
        'end' => null,
    ],
    [ // ...
->default([
    [
        'day' => 'monday',
        'start' => null,
        'end' => null,
    ],
    [ // ...

Which it display them fine, but when I want to persist the data -> the values of the
'day'
'day'
key (that is being handled on a
Select
Select
field) are not being passed (remain
null
null
). Only when I manually clic on the select and change it -> they are included in the request.

How to include the values by default?

Thanks in advance.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to "$set" Repeater itemLabel()
FilamentFFilament / ❓┊help
3y ago
How to set values on Fields initially?
FilamentFFilament / ❓┊help
8mo ago
Repeater default value
FilamentFFilament / ❓┊help
10mo ago