项目
在 GitHub 查看
rappasoft/laravel-livewire-tables
关于
适用于 Laravel Livewire 的动态表格组件
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -2
- 1个月
- -3
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Enjoying this package? Buy me a beer 🍺
A dynamic Laravel Livewire component for data tables.


Bootstrap 4 Demo | Bootstrap 5 Demo | Tailwind Demo | Demo Repository
Installation
You can install the package via composer:
composer require rappasoft/laravel-livewire-tables
Supports Livewire 3 and 4. Livewire includes Alpine.js; avoid loading a second copy in your application.
Documentation and Usage Instructions
See the documentation for detailed installation and usage instructions.
Basic Example
<?php
namespace App\Http\Livewire\Admin\User;
use App\Domains\Auth\Models\User;
use Illuminate\Database\Eloquent\Builder;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
class UsersTable extends DataTableComponent
{
protected $model = User::class;
public function configure(): void
{
$this->setPrimaryKey('id');
}
public function columns(): array
{
return [
Column::make('ID', 'id')
->sortable(),
Column::make('Name')
->sortable(),
];
}
}
See advanced example
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please e-mail [email protected] to report any security vulnerabilities instead of the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
探索相关项目
加载中…