SerializesTransport
trait SerializesTransport
Traits
Methods
Get the property value prepared for serialization.
Get the restored property value after deserialization.
Get the query for model restoration.
Prepare notification models and transport state for serialization.
Restore notification transport objects and models.
Details
in
SerializesAndRestoresModelIdentifiers at line 21
protected mixed
getSerializedPropertyValue(mixed $value, bool $withRelations = true)
Get the property value prepared for serialization.
in
SerializesAndRestoresModelIdentifiers at line 64
protected mixed
getRestoredPropertyValue(mixed $value)
Get the restored property value after deserialization.
in
SerializesAndRestoresModelIdentifiers at line 78
protected Collection
restoreCollection(ModelIdentifier $value)
Restore a queueable collection instance.
in
SerializesAndRestoresModelIdentifiers at line 118
Model
restoreModel(ModelIdentifier $value)
Restore the model from the model identifier instance.
in
SerializesAndRestoresModelIdentifiers at line 137
protected Builder
getQueryForModelRestoration(Model $model, array|int|string $ids)
Get the query for model restoration.
at line 22
array
__serialize()
Prepare notification models and transport state for serialization.
at line 42
void
__unserialize(array $values)
Restore notification transport objects and models.
in
SerializesModels at line 105
protected mixed
getPropertyValue(ReflectionProperty $property)
Get the property value for the given property.
Unlike Laravel, this reads the stored value without running a get hook, as native serialization does.