在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rappasoft/laravel-livewire-tables开源软件地址(OpenSource Url):https://github.com/rappasoft/laravel-livewire-tables开源编程语言(OpenSource Language):PHP 70.0%开源软件介绍(OpenSource Introduction):A dynamic Laravel Livewire component for data tables. Bootstrap 4 Demo | Bootstrap 5 Demo | Tailwind Demo | Demo RepositoryInstallationYou can install the package via composer: composer require rappasoft/laravel-livewire-tables You must also have Alpine.js version 3 or greater installed and available to the component. Documentation and Usage InstructionsSee 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 columns(): array
{
return [
Column::make('Name')
->sortable()
->searchable(),
Column::make('E-mail', 'email')
->sortable()
->searchable(),
Column::make('Verified', 'email_verified_at')
->sortable(),
];
}
} See advanced exampleTestingcomposer test ChangelogPlease see CHANGELOG for more information on what has changed recently. ContributingPlease see CONTRIBUTING for details. Security VulnerabilitiesPlease e-mail [email protected] to report any security vulnerabilities instead of the issue tracker. CreditsLicenseThe MIT License (MIT). Please see License File for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论