Страницы · Laravilt
AI Columns
Describe the columns an AI agent can search, filter, sort and write.
AIColumn describes a model attribute to the AI agent so it can query, filter and manage records.
Basic Column
php
Column Types
php
Capabilities
php
Relationship Columns
php
Complete Example
php
AIColumn Methods
| Method | Parameters | Description |
|---|---|---|
make() | string $name | Create column |
label() | string | Display label |
description() | string | Hint for the AI |
type() | string | Data type |
options() | array | Allowed values |
searchable() | bool = true | Enable search |
filterable() | bool = true | Enable filtering |
sortable() | bool = true | Enable sorting |
relationship() | string, string = 'name' | Relationship and title column |