Available for select projects New York · Working worldwide
Rappasoft LLC
Menu

Laravel Livewire Tables / Documentation / v1

Eloquent

Installation, configuration, and usage guidance maintained with the project.

Every DataTable component must define a base query, which is the start of the query that will be appended to for the rest of the components included functionality.

Right now only Eloquent models are supported.

1public function query(): Builder
2{
3 return User::query();
4}

The query is where you will append custom searching and filters later in the documentation. You should also eager load any relationships you need here as well.

Make sure your query includes a column to be used as the primary key.