- Creating Columns
- Relationships
- Available Methods
- Other Column Types
- Column Selection
- Secondary Header
- Footer
Getting Started
Usage
DataTable
Columns
Rows
Sorting
Pagination
Search
Bulk Actions
Filters
Reordering
Secondary Header
Footer
Examples
Misc.
Sponsored
Advanced Usage
Examples
🎉 Enjoying this package? Consider sponsoring me on GitHub or buying me a beer.
This is the documentation for v2 but the latest version is v3. You can switch versions in the menu on the left/at the top. Check your current version with the following command:
composer show rappasoft/laravel-livewire-tables
Configuration
You must implement the configure
method on your component.
1public function configure(): void {}
The only configuration method that is required is setPrimaryKey
.
1public function configure(): void {2 $this->setPrimaryKey('id');3}
The primary key is a field on your model that acts as a unique identifier for the row. I.e. an ID, a UUID, etc.