FilamentF
Filament3y ago
qcol

SpatieTags filter

This is probably a problem more Laravel than Filament.... But maybe someone can tell me how to create a filter for SpatieTags?
The name column is json type, so I try as below and only have sequence numbers instead of names in Select (1,2,3,4)

SelectFilter::make('tags') ->relationship('tags', 'id') ->options(Tag::getWithType('company_types') ->pluck('name->pl', 'id') )
Was this page helpful?