Tinkerwell - The PHP Scratchpad

Laravel Livewire Tables

rappasoft/laravel-livewire-tables image

Laravel Livewire Tables stats

Downloads
1.2M
Stars
1,498
Open Issues
20
Forks
283

View on GitHub →

A dynamic table component for Laravel Livewire

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

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

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 anthony@rappasoft.com to report any security vulnerabilities instead of the issue tracker.

Credits

License

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

rappasoft photo

Certified Laravel Developer

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Rappasoft Laravel Livewire Tables Related Articles

Backpack v7 is Launched - See What's New image

Backpack v7 is Launched - See What's New

Read article
Powerful Debugging for PHP & Laravel with LaraDumps image

Powerful Debugging for PHP & Laravel with LaraDumps

Read article
Building a Multi-Step Form With Laravel, Livewire, and MongoDB image

Building a Multi-Step Form With Laravel, Livewire, and MongoDB

Read article
Create Tables for Your Models with Livewire Tables image

Create Tables for Your Models with Livewire Tables

Read article
Filament Tables TALL Stack Component image

Filament Tables TALL Stack Component

Read article
Filament: the TALL Stack Admin Panel image

Filament: the TALL Stack Admin Panel

Read article
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
Cut PHP Code Review Time & Bugs into Half with CodeRabbit logo

Cut PHP Code Review Time & Bugs into Half with CodeRabbit

CodeRabbit is an AI-powered code review tool that specializes in PHP and Laravel, running PHPStan and offering automated PR analysis, security checks, and custom review features while remaining free for open-source projects.

Cut PHP Code Review Time & Bugs into Half with CodeRabbit
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $3200/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy