class Field implements CastsAttributes

Traits

Properties

protected array $timestamps from  Timestamps
protected array $attributes from  Accessors
array $modified from  Accessors
protected $type

Methods

serializeTimestamp($value)

No description

array
toArray()

Get the raw attributes

mixed
__get(string $property)

No description

__set(string $property, mixed $value)

No description

bool
__isset(string $property)

No description

__unset(string $key)

No description

bool
offsetExists(string $property)

No description

mixed
offsetGet(string $property)

No description

mixed
offsetSet(string $property, mixed $value)

No description

void
offsetUnset(string $key)

No description

string
__toString()

No description

__construct($typeOrAttributes = 'string')

No description

getIdAttribute($id)

No description

getCollectionIdAttribute($collectionId)

No description

getSortingAttribute($sorting)

No description

findField(Collection $fields, Collection $keys)

No description

getField(Model $model, string|array $key)

No description

getBlockField(array $block, Field $field)

No description

array|bool|Carbon|float|int|mixed|EditorBlocks|JSON|null
get(Model $model, string|array $keys, mixed $value, array $attributes)

No description

set(Model $model, string[] $keys, mixed $value, array $attributes)

No description

__debugInfo()

No description

Details

in Timestamps at line 18
serializeTimestamp($value)

Parameters

$value

in Accessors at line 30
array toArray()

Get the raw attributes

Return Value

array

in Accessors at line 39
mixed __get(string $property)

Parameters

string $property

Return Value

mixed

in Accessors at line 67
__set(string $property, mixed $value)

Parameters

string $property
mixed $value

in Accessors at line 97
bool __isset(string $property)

Parameters

string $property

Return Value

bool

in Accessors at line 105
__unset(string $key)

Parameters

string $key

in Accessors at line 116
bool offsetExists(string $property)

Parameters

string $property

Return Value

bool

in Accessors at line 127
mixed offsetGet(string $property)

Parameters

string $property

Return Value

mixed

in Accessors at line 137
mixed offsetSet(string $property, mixed $value)

Parameters

string $property
mixed $value

Return Value

mixed

in Accessors at line 146
void offsetUnset(string $key)

Parameters

string $key

Return Value

void

in Accessors at line 154
string __toString()

Return Value

string

at line 37
__construct($typeOrAttributes = 'string')

Parameters

$typeOrAttributes

at line 48
getIdAttribute($id)

Parameters

$id

at line 53
getCollectionIdAttribute($collectionId)

Parameters

$collectionId

at line 58
getSortingAttribute($sorting)

Parameters

$sorting

at line 68
protected Field findField(Collection $fields, Collection $keys)

Parameters

Collection $fields
Collection $keys

Return Value

Field

at line 96
protected Field getField(Model $model, string|array $key)

Parameters

Model $model
string|array $key

Return Value

Field

at line 101
protected getBlockField(array $block, Field $field)

Parameters

array $block
Field $field

at line 118
array|bool|Carbon|float|int|mixed|EditorBlocks|JSON|null get(Model $model, string|array $keys, mixed $value, array $attributes)

Parameters

Model $model
string|array $keys
mixed $value
array $attributes

Return Value

array|bool|Carbon|float|int|mixed|EditorBlocks|JSON|null

at line 228
set(Model $model, string[] $keys, mixed $value, array $attributes)

Parameters

Model $model
string[] $keys
mixed $value
array $attributes

at line 311
__debugInfo()