Version

Theme

NOTE

You are currently viewing the documentation for Filament 2.x, which is a previous version of Filament.

Looking for the current stable version? Visit the 3.x documentation.

Tables - Columns

Tags column

Tags columns render a list of tags from an array:

use Filament\Tables\Columns\TagsColumn;

TagsColumn::make('tags')

Be sure to add an array cast to the model property:

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    protected $casts = [
        'tags' => 'array',
    ];

    // ...
}

Using a separator

Instead of using an array, you may use a separated string by passing the separator into separator():

use Filament\Tables\Columns\TagsColumn;

TagsColumn::make('tags')->separator(',')
Edit on GitHub

Still need help? Join our Discord community or open a GitHub discussion

Previous
Badge column