trait Editable

Methods

bool
authorizeFieldUpdate(Model $record, string $field, mixed $value)

Authorize a field update before persisting.

bool|void
updateField(mixed $id, string $field, mixed $value)

Update a specific field for a row.

Details

at line 19
bool authorizeFieldUpdate(Model $record, string $field, mixed $value)

Authorize a field update before persisting.

Override this method in your table component to add policy checks or custom authorization logic.

Parameters

Model $record

The Eloquent model being updated.

string $field

The field/column key being updated.

mixed $value

The new value.

Return Value

bool

at line 35
bool|void updateField(mixed $id, string $field, mixed $value)

Update a specific field for a row.

Handles inline editing updates. Supports callbacks, Eloquent models, and array data. Dispatches 'table-field-updated' event.

Parameters

mixed $id

The row ID.

string $field

The field/column key to update.

mixed $value

The new value.

Return Value

bool|void

Returns true if successful, false otherwise.