الصفحات · Laravilt
Page Tables
Show tabular data on a page by building on a resource's list page.
Tables in Laravilt come from resources. To show a data listing on its own page, extend Laravilt\Panel\Pages\ListRecords and point it at a resource. php artisan laravilt:page --type=table generates a page with this base class.
Custom Listing Page
php
ListRecords reads records from the resource's getEloquentQuery() (with tenant scoping), and adds a create action if the resource has a create page. Override headerActions() to add more actions.
Tables on Dashboards
To show a small table next to other content, use a widget. See Page Widgets & Actions and the Widgets section.