Structure
class Structure
Traits
Properties
protected array | $timestamps | from Timestamps | |
protected | $attributes | ||
array | $modified | from Accessors |
Methods
__construct(array $attributes = [])
No description
static bool
isModelRegistered(string $model)
No description
static bool
registerModel(string $model, bool $overwrite = true)
Register a model
static Model
resolveModel(mixed $id)
No description
string
model()
Gets the registered model for this structure
getIdAttribute($id)
No description
getPublishedAttribute($published)
No description
getFieldsAttribute($fields = [])
No description
Details
in
Timestamps at line 18
serializeTimestamp($value)
in
Accessors at line 30
array
toArray()
Get the raw attributes
in
Accessors at line 39
mixed
__get(string $property)
in
Accessors at line 67
__set(string $property, mixed $value)
in
Accessors at line 97
bool
__isset(string $property)
in
Accessors at line 105
__unset(string $key)
in
Accessors at line 116
bool
offsetExists(string $property)
in
Accessors at line 127
mixed
offsetGet(string $property)
in
Accessors at line 137
mixed
offsetSet(string $property, mixed $value)
in
Accessors at line 146
void
offsetUnset(string $key)
in
Accessors at line 154
string
__toString()
at line 51
protected
__construct(array $attributes = [])
at line 60
static bool
isModelRegistered(string $model)
at line 76
static bool
registerModel(string $model, bool $overwrite = true)
Register a model
at line 100
static Model
resolveModel(mixed $id)
at line 113
string
model()
Gets the registered model for this structure