trait HasRecords (View source)

Properties

protected bool|Closure $allowsDuplicates
protected string|Closure|null $modelLabel
protected string|Closure|null $pluralModelLabel
protected string|Closure|null $recordTitle
protected string|Closure|null $recordTitleAttribute

Methods

allowDuplicates(bool|Closure $condition = true)

No description

modelLabel(string|Closure|null $label)

No description

pluralModelLabel(string|Closure|null $label)

No description

recordTitle(string|Closure|null $title)

No description

recordTitleAttribute(string|Closure|null $attribute)

No description

CursorPaginator
getRecords()

No description

string
getRecordKey(Model $record)

No description

string
getModel()

No description

bool
allowsDuplicates()

No description

string
getModelLabel()

No description

string
getPluralModelLabel()

No description

string
getRecordTitle(Model $record)

No description

bool
hasCustomRecordTitle()

No description

string|null
getRecordTitleAttribute()

No description

Details

HasRecords allowDuplicates(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasRecords

HasRecords modelLabel(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

HasRecords

HasRecords pluralModelLabel(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

HasRecords

HasRecords recordTitle(string|Closure|null $title)

No description

Parameters

string|Closure|null $title

Return Value

HasRecords

HasRecords recordTitleAttribute(string|Closure|null $attribute)

No description

Parameters

string|Closure|null $attribute

Return Value

HasRecords

CursorPaginator getRecords()

No description

Return Value

CursorPaginator

string getRecordKey(Model $record)

No description

Parameters

Model $record

Return Value

string

string getModel()

No description

Return Value

string

bool allowsDuplicates()

No description

Return Value

bool

string getModelLabel()

No description

Return Value

string

string getPluralModelLabel()

No description

Return Value

string

string getRecordTitle(Model $record)

No description

Parameters

Model $record

Return Value

string

bool hasCustomRecordTitle()

No description

Return Value

bool

string|null getRecordTitleAttribute()

No description

Return Value

string|null