OptionsRelation
Options relation table trait
Table of Contents
Methods
- getOption() : object|null
- Get option
- getOptionsClass() : string|null
- Get option model class
- getOptionsListAttribute() : Collection
- Create options_list attribute used for better collection serialization key => value
- getOptionValue() : mixed
- Get option value
- options() : mixed
- Options relation
Methods
getOption()
Get option
public
getOption(string $key) : object|null
Parameters
- $key : string
Return values
object|nullgetOptionsClass()
Get option model class
public
getOptionsClass() : string|null
Return values
string|nullgetOptionsListAttribute()
Create options_list attribute used for better collection serialization key => value
public
getOptionsListAttribute() : Collection
Return values
CollectiongetOptionValue()
Get option value
public
getOptionValue(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
options()
Options relation
public
options() : mixed