laravilt/tables
最新稳定版本:1.0.6
Composer 安装命令:
composer require laravilt/tables
包简介
Complete table system with columns, filters, sorting, bulk actions, and pagination. Build powerful data tables with search, filters, inline editing, row/bulk actions, and responsive mobile-friendly layouts.
关键字:
README 文档
README
Laravilt Tables
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.
Features
- 📊 9 Column Types - Text, Image, Badge, Icon, Select, Toggle, Color, Relationship, Custom
- 🔍 5 Filter Types - Text, Select, Multi-Select, Boolean, Date Range
- ↕️ Sorting - Multi-column sorting with direction control
- ✅ Bulk Actions - Select and perform actions on multiple rows
- 📄 Pagination - Built-in pagination with customizable page sizes
- 📱 Responsive - Mobile-friendly with column visibility control
Column Types
| 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 |
Quick Example
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()), ]);
Installation
composer require laravilt/tables
Generator Commands
php artisan make:table UserTable php artisan make:table UserTable --actions
Documentation
- Complete Documentation - All column types, filters, and actions
- MCP Server Guide - AI agent integration
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 184
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-12
