Introducing Laravel Quizzes! Play now

Laravel Livewire Tables Documentation

This is the documentation for v2. You can switch versions in the menu 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.

public function configure(): void {}

The only configuration method that is required is setPrimaryKey.

public function configure(): void {
    $this->setPrimaryKey('id');
}

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.