Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Latest commit

 

History

History
20 lines (15 loc) · 413 Bytes

configuration.md

File metadata and controls

20 lines (15 loc) · 413 Bytes
title weight
Configuration
3

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.