Pages · Laravilt
Infolists
Read-only display of record data with typed entries and layouts.
The laravilt/infolists package displays record data read-only, for example on a resource's View page. You describe entries in PHP, and Vue or React renders them.
React support requires Laravilt v1.1 or later.
Basic usage
In a resource, define the static infolist() method:
php
To generate a standalone infolist class, run php artisan make:infolist UserInfolist. It creates app/Infolists/UserInfolist.php.
Sections
- Entries: the eight entry types
- Layouts: Section, Grid and Tabs for entries
- Custom Entries: build your own entry types