Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A dynamic table component for Laravel Livewire

License

NotificationsYou must be signed in to change notification settings

rappasoft/laravel-livewire-tables

Repository files navigation

Package Logo

Latest Version on PackagistStylingTestsTotal DownloadscodecovPHP Stan Level 6

Enjoying this package?Buy me a beer 🍺

A dynamic Laravel Livewire component for data tables.

Dark Mode

Full Table

Installation

You can install the package via composer:

composer require rappasoft/laravel-livewire-tables

You must also haveAlpine.js version 3 or greater installed and available to the component.

Documentation and Usage Instructions

See thedocumentation for detailed installation and usage instructions.

Basic Example

<?phpnamespaceApp\Http\Livewire\Admin\User;useApp\Domains\Auth\Models\User;useIlluminate\Database\Eloquent\Builder;useRappasoft\LaravelLivewireTables\DataTableComponent;useRappasoft\LaravelLivewireTables\Views\Column;class UsersTableextends DataTableComponent{protected$model = User::class;publicfunctionconfigure():void    {$this->setPrimaryKey('id');    }publicfunctioncolumns():array    {return [            Column::make('ID','id')                ->sortable(),            Column::make('Name')                ->sortable(),        ];    }}

Testing

composertest

Changelog

Please seeCHANGELOG for more information on what has changed recently.

Contributing

Please seeCONTRIBUTING for details.

Security Vulnerabilities

Please e-mailanthony@rappasoft.com to report any security vulnerabilities instead of the issue tracker.

Credits

License

The MIT License (MIT). Please seeLicense File for more information.


[8]ページ先頭

©2009-2025 Movatter.jp