Pages · Laravilt
Tables
Build searchable, sortable, filterable data tables for your resources with a fluent PHP API.
The laravilt/tables package turns a fluent PHP definition into a fully interactive data table rendered by Inertia v3. It renders with Vue 3 (shadcn-vue / reka-ui) or React 19 (shadcn/ui), styled with Tailwind CSS v4. You describe columns, filters, and actions in PHP; Laravilt handles querying, pagination, search, sorting, and the frontend.
React support requires Laravilt v1.1 or later.
php
Tables are usually defined in a resource's table() method (see Your First Resource). You can also generate a standalone table class in app/Tables with php artisan make:table UsersTable [--actions].
In this section
- Columns: text, image, icon, color, and editable columns
- Filters: select, ternary, trashed, and custom filters
- Actions: row, bulk, and header actions in tables
- Features: search, sorting, column visibility, grouping, reordering, fixed actions, and polling
- Display: pagination, grid view, and cards
- API: expose a resource as a REST API
- Customization: reusable columns and frontend components
Try it live at demo.laravilt.com (login [email protected] / password).