F
Filamentβ€’16mo ago
warpig

not being able to use SpatieTagsColumn due to a non-existing method

Can't view the tags list on admin/tags it throws the following error:
Method Filament\Tables\Columns\SpatieTagsColumn::badge does not exist.
Method Filament\Tables\Columns\SpatieTagsColumn::badge does not exist.
And im aware there are a few channels dedicated to plugins, doesn't seem to be one for spatie-tags, that's why im posting here. So i installed the package My Tag model uses "HasTags" The class is imported on TagResource On the table function:
->columns([SpatieTagsColumn::make('tags')])
->columns([SpatieTagsColumn::make('tags')])
And using SpatieTagsInput on the form to display the form
6 Replies
Patrick Boivin
Patrick Boivinβ€’16mo ago
@warpig55 Can you try the following command:
composer require filament/spatie-laravel-tags-plugin:"^2.0"
composer require filament/spatie-laravel-tags-plugin:"^2.0"
This will pin the version to 2.x You are on Filament 2.x, right?
warpig
warpigOPβ€’16mo ago
No 3 But i reverted back to 2 now
Patrick Boivin
Patrick Boivinβ€’16mo ago
Ah ok, this could be it. If your project is running on 2.x, try the command above πŸ‘†
warpig
warpigOPβ€’16mo ago
hey yeah that worked, i think... i thought this would show the tags name @pboivin πŸ˜… it is not showing them unless i just need to check the documentation on displaying them? But that error is gone and im using the class
Patrick Boivin
Patrick Boivinβ€’16mo ago
I'm not sure tbh, I have never used it πŸ˜‚ Have a quick look in the docs, see if there's anything obvious
warpig
warpigOPβ€’16mo ago
will do thank you.
Want results from more Discord servers?
Add your server