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
What is the filament version?
Ahmad Najm
Ahmad NajmOP2y ago
3.0.0
LeandroFerreira
Add ^3.0 in your composer.json and run composer update
Firebird
Firebird2y ago
how did you fix that bug?
LeandroFerreira
what is the filament version?
Firebird
Firebird2y ago
"filament/filament": "^3.0",
LeandroFerreira
did you run composer update?
Firebird
Firebird2y ago
yes twice
LeandroFerreira
Filament version on the dashboard page?
Firebird
Firebird2y ago
v3.0.0.0
LeandroFerreira
still running 3.0.. you could remove composer.lock and try again..
Firebird
Firebird2y ago
i did remove composer.lock then run composer update, but version still remain the same
LeandroFerreira
share the composer.json
LeandroFerreira
should work.. try composer reinstall filament/filament php artisan filament:upgrade
Firebird
Firebird2y ago
still it didn't work
ChesterS
ChesterS2y ago
any chance there's a clash between filament/filament and filament/forms ? You don't need both, right?
Firebird
Firebird2y ago
do you want me to change them as well? yeah it worked, thanks

Did you find this page helpful?