SerializesAndRestoresModelIdentifiers
Table of Contents
- getQueryForModelRestoration() : Builder
- Get the query for restoration.
- getRestoredPropertyValue() : mixed
- Get the restored property value after deserialization.
- getSerializedPropertyValue() : mixed
- Get the property value prepared for serialization.
- restoreCollection() : Collection
- Restore a queueable collection instance.
Methods
getQueryForModelRestoration()
Get the query for restoration.
protected
getQueryForModelRestoration(Model $model, array<string|int, mixed>|int $ids) : Builder
Parameters
- $model : Model
- $ids : array<string|int, mixed>|int
Return values
Builder —getRestoredPropertyValue()
Get the restored property value after deserialization.
protected
getRestoredPropertyValue(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —getSerializedPropertyValue()
Get the property value prepared for serialization.
protected
getSerializedPropertyValue(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —restoreCollection()
Restore a queueable collection instance.
protected
restoreCollection(ModelIdentifier $value) : Collection
Parameters
- $value : ModelIdentifier