trait Illuminate / Queue / SerializesAndRestoresModelIdentifiers

SerializesAndRestoresModelIdentifiers

Methods

protected

getSerializedPropertyValue ( $value , $withRelations ) : mixed

Get the property value prepared for serialization.

Parameters

  • $value mixed
  • $withRelations bool
protected

getRestoredPropertyValue ( $value ) : mixed

Get the restored property value after deserialization.

Parameters

  • $value mixed
protected

restoreCollection ( $value ) : Illuminate\...\Collection

Restore a queueable collection instance.

Parameters

public

restoreModel ( $value ) : Model

Restore the model from the model identifier instance.

Parameters

protected

getQueryForModelRestoration ( $model , $ids ) : Builder

Get the query for model restoration.

Parameters