F
Filament13mo ago
G0LD

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