F
Filament16mo ago
Jessy

Filament\Forms\Components\Select::isOptionDisabled():

Argument #2 ($label) must be of type string, null given, called in /../storage/framework/views/a7a61bf937bbbc17b1d5fdc4121e9f173917da9e.php on line 83. Hi. Why I have this error? I just use a Select: Forms\Components\Select::make('category_id') ->options(Category::all()->pluck('name', 'id')),
4 Replies
Lara Zeus
Lara Zeus16mo ago
do you have the column name and id in your table?
Jessy
JessyOP16mo ago
yes, I put this Select in a repeter: Forms\Components\Repeater::make('categories') ->label(false) ->relationship() ->schema([ Forms\Components\Select::make('category_id') ->options(Category::all()->pluck('name', 'id')), Forms\Components\TextInput::make('filter')), ]) i saved one time to test, and after that I got this error, when edit Rollback all my changes, because before the code was working, but stil have the error now php artisan cache:clear, I tried to clear the cache but nothing
Lara Zeus
Lara Zeus16mo ago
did the values stord normally in the database, the only time I see this error is when the column is not exist
Jessy
JessyOP16mo ago
not normally, I made a mistake with the relationship and empty categories were created which then joined in the pivot table. thank you!

Did you find this page helpful?