ページ · Laravilt
Resource Tables
Configure the table shown on a resource's list page.
A resource's table() defines the columns, filters and actions on its list page.
Basic Table
php
The generator puts the table in Table/UserTable.php and the resource delegates to it. If the database table has a deleted_at column, the generator also adds soft-delete support (trashed filter and restore actions).
Scoping the Query
The list page reads records from the resource's getEloquentQuery(), which also applies tenant scoping. Override it to change the base query:
php
Related
- Tables: columns, filters and table features
- Actions: record and bulk actions
- Navigation Badges: show record counts in the sidebar