petersowah
petersowah
FFilament
Created by petersowah on 8/11/2023 in #❓┊help
Dehydrating fields not working.
I have a repeater with fields inside. The data in the repeater field will be mutated before saving to the database. However, when I try saving the form, I get an error about the dehydrated fields which are only presentational. Please see snippet below:
Repeater::make('activities')
->schema([
TextInput::make('day')->numeric()->required()->unique()->dehydrated(false),
TagsInput::make('activity')->required()->hint('press enter to add new')->dehydrated(false),
])
->label('Daily activities')
->dehydrated(false),
Repeater::make('activities')
->schema([
TextInput::make('day')->numeric()->required()->unique()->dehydrated(false),
TagsInput::make('activity')->required()->hint('press enter to add new')->dehydrated(false),
])
->label('Daily activities')
->dehydrated(false),
I only need the data in here so I can mutate the data object before saving to the database. Thank you very much!
19 replies
FFilament
Created by petersowah on 8/8/2023 in #❓┊help
How do I modify the command for creating filament admins?
I have a users table with first and last name columns. In creating filament users, I want to provide data for the first and last name fields. How do I achieve this? I didn't a solution in the docs. Thanks in advance.
6 replies
FFilament
Created by petersowah on 8/7/2023 in #❓┊help
How do I retrieve file upload urls stored in a another table?
I have a Tour model and an Upload model. The Upload models has a polymorphic relationship with Tours, Users, etc. How do I retrieve the upload urls from the uploads url when viewing tours? Thanks
6 replies