HasCellState
trait HasCellState (View source)
Properties
protected mixed | $defaultState | ||
protected mixed | $getStateUsing | ||
protected string|Closure|null | $separator | ||
protected bool|Closure | $isDistinctList | ||
protected string|null | $inverseRelationshipName |
Methods
inverseRelationship(string|null $name)
No description
distinctList(bool|Closure $condition = true)
No description
getStateUsing(mixed $callback)
No description
state(mixed $state)
No description
default(mixed $state)
No description
bool
isDistinctList()
No description
mixed
getDefaultState()
No description
mixed
getState()
No description
mixed
getStateFromRecord()
No description
separator(string|Closure|null $separator = ',')
No description
string|null
getSeparator()
No description
bool
hasRelationship(Model $record)
No description
bool
Relation|null
getRelationship(Model $record, string|null $name = null)
No description
array
getRelationshipResults(Model $record, array|null $relationships = null)
No description
string
getRelationshipAttribute(string|null $name = null)
No description
string
getInverseRelationshipName(Model $record)
No description
string|null
getRelationshipName(string|null $name = null)
No description
Details
HasCellState
inverseRelationship(string|null $name)
No description
HasCellState
distinctList(bool|Closure $condition = true)
No description
HasCellState
getStateUsing(mixed $callback)
No description
HasCellState
state(mixed $state)
No description
HasCellState
default(mixed $state)
No description
bool
isDistinctList()
No description
mixed
getDefaultState()
No description
mixed
getState()
No description
mixed
getStateFromRecord()
No description
HasCellState
separator(string|Closure|null $separator = ',')
No description
string|null
getSeparator()
No description
bool
hasRelationship(Model $record)
No description
bool
queriesRelationships(Model $record)
deprecated
deprecated
No description
Relation|null
getRelationship(Model $record, string|null $name = null)
No description
array
getRelationshipResults(Model $record, array|null $relationships = null)
No description
string
getRelationshipAttribute(string|null $name = null)
No description
string
getInverseRelationshipName(Model $record)
No description
string|null
getRelationshipName(string|null $name = null)
No description