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

Did you find this page helpful?