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

Community Laravel Extension for Zed image

Community Laravel Extension for Zed

Read article
Laravel Schema Sentinel: Detect and Fix Database Schema Drift image

Laravel Schema Sentinel: Detect and Fix Database Schema Drift

Read article
Filament through the years image

Filament through the years

Read article
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
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Honeybadger logo

Honeybadger

Simple developer-focused application monitoring for Laravel. Error tracking, log management, uptime monitoring, status pages, and more!

Honeybadger
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
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Statamic logo

Statamic

The drop-in ready Laravel CMS you’re been waiting for. Go full-stack or headless, flat file or database – it’s up to you.

Statamic
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud