© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
15 replies
Eric

How to put a link for each badge in TextColumn?

I would like to enable the ability to click on each playlist in the column and open its corresponding link. Below is the current PHP code snippet for creating the column:
TextColumn::make('playlists.name')
    ->badge()
    ->label(__('Playlists'))
    // ->getStateUsing(function (Song $record) {
    //     dd($record);
    // })
    // ->url()
,
TextColumn::make('playlists.name')
    ->badge()
    ->label(__('Playlists'))
    // ->getStateUsing(function (Song $record) {
    //     dd($record);
    // })
    // ->url()
,

How can I modify this code to achieve the desired functionality of clicking on each playlist to open its link?
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

How to refactor this TextColumn badge link?
FilamentFFilament / ❓┊help
3y ago
Multicolor TextColumn Badge
FilamentFFilament / ❓┊help
13mo ago
Translate labels in TextColumn->badge()
FilamentFFilament / ❓┊help
3y ago
it is possible to make badges with link for each badge
FilamentFFilament / ❓┊help
2y ago