Relationship
class Relationship
Properties
| protected Factory | $factory | The related factory instance. |
|
| protected string | $relationship | The relationship name. |
Methods
Details
at line 28
__construct(Factory $factory, string $relationship)
Create a new child relationship instance.
at line 37
void
createFor(Model $parent)
Create the child relationship for the given parent model.
at line 62
Relationship
recycle(Collection $recycle)
Specify the model instances to always use when creating relationships.