EntanglesStateWithSingularRelationship
trait EntanglesStateWithSingularRelationship (View source)
Properties
protected Model|null | $cachedExistingRecord | ||
protected string|null | $relationship | ||
protected Closure|null | $mutateRelationshipDataBeforeCreateUsing | ||
protected Closure|null | $mutateRelationshipDataBeforeFillUsing | ||
protected Closure|null | $mutateRelationshipDataBeforeSaveUsing |
Methods
relationship(string $name, bool|Closure $condition = true)
No description
void
fillFromRelationship()
No description
array
getStateFromRelatedRecord(Model $record)
No description
getChildComponentContainer(array-key $key = null)
No description
MorphOne|null
getRelationship()
No description
string|null
getRelationshipName()
No description
string|null
getRelatedModel()
No description
cachedExistingRecord(Model|null $record)
No description
Model|null
getCachedExistingRecord()
No description
void
clearCachedExistingRecord()
No description
array
mutateRelationshipDataBeforeCreate(array $data)
No description
array
mutateRelationshipDataBeforeFill(array $data)
No description
array
mutateRelationshipDataBeforeSave(array $data)
No description
Details
EntanglesStateWithSingularRelationship
relationship(string $name, bool|Closure $condition = true)
No description
void
fillFromRelationship()
No description
protected array
getStateFromRelatedRecord(Model $record)
No description
ComponentContainer
getChildComponentContainer(array-key $key = null)
No description
MorphOne|null
getRelationship()
No description
string|null
getRelationshipName()
No description
string|null
getRelatedModel()
No description
EntanglesStateWithSingularRelationship
cachedExistingRecord(Model|null $record)
No description
Model|null
getCachedExistingRecord()
No description
void
clearCachedExistingRecord()
No description
EntanglesStateWithSingularRelationship
mutateRelationshipDataBeforeCreateUsing(Closure|null $callback)
No description
array
mutateRelationshipDataBeforeCreate(array $data)
No description
EntanglesStateWithSingularRelationship
mutateRelationshipDataBeforeSaveUsing(Closure|null $callback)
No description
array
mutateRelationshipDataBeforeFill(array $data)
No description
EntanglesStateWithSingularRelationship
mutateRelationshipDataBeforeFillUsing(Closure|null $callback)
No description
array
mutateRelationshipDataBeforeSave(array $data)
No description