Skip to main content
You are currently viewing the documentation for Filament 3.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.

View entries

You may render a custom view for an entry using the view() method:
This assumes that you have a resources/views/filament/infolists/entries/status-switcher.blade.php file.

Custom classes

You may create your own custom entry classes and entry 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 entry to use once, you could instead use a view entry to render any custom Blade file.
To create a custom entry class and view, you may use the following command:
This will create the following entry class:
It will also create a view file at resources/views/filament/infolists/entries/status-switcher.blade.php.

Accessing the state

Inside your view, you may retrieve the state of the entry using the $getState() function:

Accessing the Eloquent record

Inside your view, you may access the Eloquent record using the $getRecord() function: