F
Filament8mo ago
José

Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string

Hello, in the attached form when I'm filling it at the end uploading a file it show me this error "Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type string, null given, called" what do you think can be?
2 Replies
LeandroFerreira
LeandroFerreira8mo ago
User::whereNotNull('name')->pluck('name', 'id')
lazydog
lazydog8mo ago
This is because you have null value in your name field. Filter it before "plucking"