class Relationship (View source)
| protected Factory | $factory | The related factory instance. | |
| protected string | $relationship | The relationship name. | 
| void | __construct(Factory $factory, string $relationship) Create a new child relationship instance. | |
| void | createFor(Model $parent) Create the child relationship for the given parent model. | 
Create a new child relationship instance.
Create the child relationship for the given parent model.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/8.x/Illuminate/Database/Eloquent/Factories/Relationship.html