Creating a resource with a View page
To create a new resource with a View page, you can use the--view flag:
Using an infolist instead of a disabled form

Infolists
Watch the Rapid Laravel Development with Filament series on Laracasts - it will teach you the basics of adding infolists to Filament resources.infolist() method on the resource class:
schema() method is used to define the structure of your infolist. It is an array of entries and layout components, in the order they should appear in your infolist.
Check out the Infolists docs for a guide on how to build infolists with Filament.
Adding a View page to an existing resource
If you want to add a View page to an existing resource, create a new page in your resource’sPages directory:
getPages() method:
Viewing records in modals
If your resource is simple, you may wish to view records in modals rather than on the View page. If this is the case, you can just delete the view page. If your resource doesn’t contain aViewAction, you can add one to the $table->actions() array:
Customizing data before filling the form
You may wish to modify the data from a record before it is filled into the form. To do this, you may define amutateFormDataBeforeFill() method on the View page class to modify the $data array, and return the modified version before it is filled into the form:
Lifecycle hooks
Hooks may be used to execute code at various points within a page’s lifecycle, like before a form is filled. To set up a hook, create a protected method on the View page class with the name of the hook:Authorization
For authorization, Filament will observe any model policies that are registered in your app. Users may access the View page if theview() method of the model policy returns true.
Creating another View page
One View page may not be enough space to allow users to navigate a lot of information. You can create as many View pages for a resource as you want. This is especially useful if you are using resource sub-navigation, as you are then easily able to switch between the different View pages. To create a View page, you should use themake:filament-page command:
getPages() method:
infolist() or form() for this page, which can contain other components that are not present on the main View page:
Customizing relation managers for a specific view page
You can specify which relation managers should appear on a view page by defining agetAllRelationManagers() method:
getAllRelationManagers() isn’t defined, any relation managers defined in the resource will be used.
Adding view pages to resource sub-navigation
If you’re using resource sub-navigation, you can register this page as normal ingetRecordSubNavigation() of the resource:
Custom view
For further customization opportunities, you can override the static$view property on the page class to a custom view in your app:
resources/views/filament/resources/users/pages/view-user.blade.php.
Here’s a basic example of what that view might contain:
vendor/filament/filament/resources/views/resources/pages/view-record.blade.php file in your project.