ModelIdentifier
class ModelIdentifier (View source)
Properties
Model> | $class | The class name of the model. |
|
mixed | $id | The unique identifier of the model. |
|
array | $relations | The relationships loaded on the model. |
|
string|null | $connection | The connection name of the model. |
|
Collection>|null | $collectionClass | The class name of the model collection. |
Methods
void
__construct(Model> $class, mixed $id, array $relations, mixed $connection)
Create a new model identifier.
$this
useCollectionClass(string|null $collectionClass)
Specify the collection class that should be used when serializing / restoring collections.
Details
void
__construct(Model> $class, mixed $id, array $relations, mixed $connection)
Create a new model identifier.
$this
useCollectionClass(string|null $collectionClass)
Specify the collection class that should be used when serializing / restoring collections.