Certainly! If you're looking for an alternative to the Livewire Datatables package by arm092, you might want to consider the following options:
-
Livewire Tables by Mediconesystems: This is a dynamic table component for Laravel Livewire. It allows you to create tables that are responsive, searchable, sortable, and support pagination out of the box.
GitHub Repository: https://github.com/MedicOneSystems/livewire-datatables
To use it, you can install the package via Composer:
composer require mediconesystems/livewire-datatablesThen, you can create a Livewire component that extends the
LivewireDatatableclass and define your columns and query:use Mediconesystems\LivewireDatatables\Http\Livewire\LivewireDatatable; use App\Models\User; class UsersTable extends LivewireDatatable { public $model = User::class; public function columns() { return [ // Define your columns here ]; } } -
PowerGrid by Power-Components: PowerGrid is a component that provides advanced features for data tables, such as exporting, inline editing, and complex filters.
GitHub Repository: https://github.com/Power-Components/livewire-powergrid
You can install it using Composer:
composer require power-components/livewire-powergridAfter installation, publish the config and views:
php artisan vendor:publish --provider="PowerComponents\LivewirePowerGrid\PowerGridServiceProvider" --tag="config"Then, create a PowerGrid component:
use PowerComponents\LivewirePowerGrid\PowerGrid; use PowerComponents\LivewirePowerGrid\PowerGridComponent; use PowerComponents\LivewirePowerGrid\PowerGridEloquent; class UserTable extends PowerGridComponent { use PowerGridEloquent; public function datasource() { return User::query(); } public function addColumns(): ?PowerGrid { // Define your columns here } // Other methods... }
These are just a couple of alternatives to the Livewire Datatables package. Each has its own set of features and usage, so you may want to review their documentation and decide which one fits your needs best. Remember to check the compatibility with your current Laravel and Livewire versions before installing any package.