handhikadj
handhikadj
FFilament
Created by handhikadj on 3/13/2024 in #❓┊help
conditional entry name on the make method
I can't find any reference how to do conditional inside the make method like the TextEntry here
RepeatableEntry::make('mydata.user_data')
->schema([
TextEntry::make(fn ($data) => $data['is_what'] ? 'id' : 'name'),
])
->columns()
RepeatableEntry::make('mydata.user_data')
->schema([
TextEntry::make(fn ($data) => $data['is_what'] ? 'id' : 'name'),
])
->columns()
3 replies