Filament: Toggleable Table Columns

In tables, you can make any column toggleable, hiding it from the table in the top right corner.

Just add the method toggleable() to the chain.

TextColumn::make('email')
->toggleable()

Changing the method parameter to "true" makes it hidden by default.

TextColumn::make('email')
->toggleable(isToggledHiddenByDefault: true)

Link to docs

Like our articles?

Become a Premium Member for $129/year or $29/month
What else you will get:
  • 59 courses (1057 lessons, total 42 h 44 min)
  • 79 long-form tutorials (one new every week)
  • access to project repositories
  • access to private Discord

Recent Premium Tutorials