I Have Problem With Select Column widget

While I want to select roles other selections is hidden Here is my code SelectColumn::make('role') ->label(__('lang.role')) ->options([ 0 => __('lang.user'), 1 => __('lang.admin'), 2 => __('lang.shop_owner'), 4 => __('lang.shop_employee'), ]) ->sortable() ->searchable(),`` And if i add native(false) code i ll get the error method not found , how to fix ,
No description
18 Replies
LeandroFerreira
LeandroFerreira15mo ago
What is the filament version?
Ahmad Najm
Ahmad NajmOP15mo ago
3.0.0
LeandroFerreira
LeandroFerreira15mo ago
Add ^3.0 in your composer.json and run composer update
Firebird
Firebird15mo ago
how did you fix that bug?
LeandroFerreira
LeandroFerreira15mo ago
what is the filament version?
Firebird
Firebird15mo ago
"filament/filament": "^3.0",
LeandroFerreira
LeandroFerreira15mo ago
did you run composer update?
Firebird
Firebird15mo ago
yes twice
LeandroFerreira
LeandroFerreira15mo ago
Filament version on the dashboard page?
Firebird
Firebird15mo ago
v3.0.0.0
LeandroFerreira
LeandroFerreira15mo ago
still running 3.0.. you could remove composer.lock and try again..
Firebird
Firebird15mo ago
i did remove composer.lock then run composer update, but version still remain the same
LeandroFerreira
LeandroFerreira15mo ago
share the composer.json
LeandroFerreira
LeandroFerreira15mo ago
should work.. try composer reinstall filament/filament php artisan filament:upgrade
Firebird
Firebird15mo ago
still it didn't work
ChesterS
ChesterS15mo ago
any chance there's a clash between filament/filament and filament/forms ? You don't need both, right?
Firebird
Firebird15mo ago
do you want me to change them as well? yeah it worked, thanks

Did you find this page helpful?