Skip to main content
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 5.x documentation.

View column

You may render a custom view for a cell using the view() method:
Inside your view, you may retrieve the state of the cell using the $getState() method:
You can also access the entire Eloquent record with $getRecord().

Custom classes

You may create your own custom column classes and cell views, which you can reuse across your project, and even release as a plugin to the community.
If youโ€™re just creating a simple custom column to use once, you could instead use a view column to render any custom Blade file.
To create a custom column class and view, you may use the following command:
This will create the following column class:
Inside your view, you may retrieve the state of the cell using the $getState() method:
You can also access the entire Eloquent record with $getRecord().