Contents

Tailor\ContentFields\RecordFinderField

Overview

RecordFinderField allows association to models

Extends
Implements
  • Illuminate\Contracts\Support\Arrayable
  • ArrayAccess
  • Illuminate\Contracts\Support\Jsonable
  • JsonSerializable

Public Properties

public string $modelClass

modelClass of the model to use for listing records

public int|null $maxItems

maxItems allowed

public string $inverse

inverse the relationship definition, set to the field name

public string $displayMode

displayMode for the relationship

public array $controller

controller config for displayMode: controller

Show inherited public properties

Inherited Public Properties

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties


Public Methods

public defineConfig()

public defineConfig($config): void

defineConfig will process the field configuration.

public defineFilterScope()

public defineFilterScope($filter, $context = null): void

defineFilterScope will define how a field is displayed in a filter.

public defineFormField()

public defineFormField($form, $context = null): void

defineFormField will define how a field is displayed in a form.

public defineListColumn()

public defineListColumn($list, $context = null): void

public extendDatabaseTable()

public extendDatabaseTable($table): void

public extendModelObject()

public extendModelObject($model): void

extendModelObject will extend the record model.

public getSingularKeyName()

public getSingularKeyName(): void

Show inherited public methods

Inherited Public Methods

Protected Methods

protected defineFormFieldAsRelationController()

protected defineFormFieldAsRelationController($field): void

protected defineInverseModelRelationship()

protected defineInverseModelRelationship($model): void

defineInverseModelRelationship for the inverse relationship. These definitions do not rely on multisite via propagatable attribute. Inverse relations do not replicate and should be treated as read-only.

protected defineModelRelationship()

protected defineModelRelationship($model): void

defineModelRelationship for the direct relationship. These definitions rely on multisite modifying the relation definition.

See Also

protected getRelatedModel()

protected getRelatedModel(): void

getRelatedModel returns the related model to use

Show inherited protected methods

Inherited Protected Methods