© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
danzzz

Editing Spatie Tags

I am trying to edit spatie tags:

Forms\Components\TextInput::make('name')
                            ->afterStateHydrated(function (Forms\Components\TextInput $component, \Spatie\Tags\Tag $tag, Forms\Components\Livewire $livewire) {
                                $component->state($tag->getTranslation('name', $livewire->activeLocale));
                    })
Forms\Components\TextInput::make('name')
                            ->afterStateHydrated(function (Forms\Components\TextInput $component, \Spatie\Tags\Tag $tag, Forms\Components\Livewire $livewire) {
                                $component->state($tag->getTranslation('name', $livewire->activeLocale));
                    })


This fails:

App\Filament\Resources\TagResource::App\Filament\Resources\{closure}(): Argument #3 ($livewire) must be of type Filament\Forms\Components\Livewire, App\Filament\Resources\TagResource\Pages\ManageTags given, called in /Users/xxx/xxx/xxx/xxx/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
App\Filament\Resources\TagResource::App\Filament\Resources\{closure}(): Argument #3 ($livewire) must be of type Filament\Forms\Components\Livewire, App\Filament\Resources\TagResource\Pages\ManageTags given, called in /Users/xxx/xxx/xxx/xxx/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Spatie Tags plugin
FilamentFFilament / ❓┊help
2y ago
Spatie tags filter
FilamentFFilament / ❓┊help
3y ago
spatie tags problem
FilamentFFilament / ❓┊help
3y ago
Filament Spatie Translatable & Filament Spatie Tags
FilamentFFilament / ❓┊help
16mo ago