| Install | |
|---|---|
composer require laravilt/tables |
|
| Latest Version: | 1.0.6 |
| PHP: | ^8.3|^8.4 |

Complete table system with columns, filters, sorting, bulk actions, and pagination for Laravilt. Build powerful data tables with search, filters, inline editing, and row/bulk actions.
| Column | Description |
|---|---|
TextColumn |
Text display with formatting options |
ImageColumn |
Image thumbnails with lightbox |
BadgeColumn |
Status badges with colors |
IconColumn |
Boolean icons (check/x) |
SelectColumn |
Inline select editing |
ToggleColumn |
Inline toggle switches |
ColorColumn |
Color swatches |
RelationshipColumn |
Display related model data |
CustomColumn |
Custom Vue component rendering |
use Laravilt\Tables\Table;
use Laravilt\Tables\Columns\TextColumn;
use Laravilt\Tables\Columns\BadgeColumn;
use Laravilt\Tables\Columns\ToggleColumn;
use Laravilt\Tables\Filters\SelectFilter;
use Laravilt\Tables\Actions\BulkAction;
Table::make()
->columns([
TextColumn::make('name')
->searchable()
->sortable(),
BadgeColumn::make('status')
->colors([
'success' => 'active',
'danger' => 'inactive',
]),
ToggleColumn::make('is_featured'),
])
->filters([
SelectFilter::make('status')
->options(['active', 'inactive']),
])
->toolbarActions([
BulkAction::make('delete')
->label('Delete Selected')
->action(fn ($records) => $records->each->delete()),
]);
composer require laravilt/tables
php artisan make:table UserTable
php artisan make:table UserTable --actions
The MIT License (MIT). Please see License File for more information.