Skip to content

Installation

Install the package with Composer:

composer require trinetus/livewire-datatables

Laravel package discovery registers the service provider automatically. If your application disables package discovery, register it manually:

Trinetus\LivewireDatatables\LivewireDatatablesServiceProvider::class,

Run migrations to create the table used for authenticated users' persisted datagrid settings:

php artisan migrate

Publishing

Publish only what you need:

php artisan vendor:publish --tag=livewire-datatables-config
php artisan vendor:publish --tag=livewire-datatables-views
php artisan vendor:publish --tag=livewire-datatables-translations
php artisan vendor:publish --tag=livewire-datatables-assets
php artisan vendor:publish --tag=livewire-datatables-migrations

The package auto-loads its migration by default. Publish the migration only if your application needs to customize the table/indexes before running it.