class Type (View source)

Properties

protected string|null $label
Closure $getOptionLabelUsing
Closure $getSearchResultsUsing
Closure $getOptionsUsing
protected Closure|null $modifyOptionsQueryUsing
protected string[] $searchColumns
protected string|null $titleAttribute
protected Closure|null $getOptionLabelFromRecordUsing
protected int $optionsLimit
protected string $model
protected bool|null $isSearchForcedCaseInsensitive

Methods

__construct(string $model)

No description

static Type
make(string $model)

No description

void
setUp()

No description

model(string $model)

No description

label(string|null $label)

No description

titleAttribute(string|null $name)

No description

titleColumnName(string|null $name) deprecated

No description

searchColumns(array|null $columns)

No description

modifyOptionsQueryUsing(Closure|null $callback)

No description

getOptionsUsing(Closure $callback)

No description

getSearchResultsUsing(Closure $callback)

No description

getOptionLabelUsing(Closure $callback)

No description

getOptionLabelFromRecordUsing(Closure|null $callback)

No description

string
getOptionLabelFromRecord(Model $record)

No description

string
getModel()

No description

string
getLabel()

No description

string
getAlias()

No description

array|null
getSearchColumns()

No description

string
getTitleAttribute()

No description

int
getOptionsLimit()

No description

forceSearchCaseInsensitive(bool|null $condition = true)

No description

bool|null

Details

final __construct(string $model)

No description

Parameters

string $model

static Type make(string $model)

No description

Parameters

string $model

Return Value

Type

protected void setUp()

No description

Return Value

void

Type model(string $model)

No description

Parameters

string $model

Return Value

Type

Type label(string|null $label)

No description

Parameters

string|null $label

Return Value

Type

Type titleAttribute(string|null $name)

No description

Parameters

string|null $name

Return Value

Type

Type titleColumnName(string|null $name) deprecated

deprecated Use `titleAttribute()` instead.

No description

Parameters

string|null $name

Return Value

Type

Type searchColumns(array|null $columns)

No description

Parameters

array|null $columns

Return Value

Type

Type modifyOptionsQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Type

Type getOptionsUsing(Closure $callback)

No description

Parameters

Closure $callback

Return Value

Type

Type getSearchResultsUsing(Closure $callback)

No description

Parameters

Closure $callback

Return Value

Type

Type getOptionLabelUsing(Closure $callback)

No description

Parameters

Closure $callback

Return Value

Type

Type getOptionLabelFromRecordUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Type

string getOptionLabelFromRecord(Model $record)

No description

Parameters

Model $record

Return Value

string

bool hasOptionLabelFromRecordUsingCallback()

No description

Return Value

bool

string getModel()

No description

Return Value

string

string getLabel()

No description

Return Value

string

string getAlias()

No description

Return Value

string

array|null getSearchColumns()

No description

Return Value

array|null

string getTitleAttribute()

No description

Return Value

string

int getOptionsLimit()

No description

Return Value

int

Type forceSearchCaseInsensitive(bool|null $condition = true)

No description

Parameters

bool|null $condition

Return Value

Type

bool|null isSearchForcedCaseInsensitive()

No description

Return Value

bool|null