Deal with tests in Laravel, faced with the problem:
There is a model (model 1) - it's easy to substitute an instance of the factory
But this model has a hasMany-relation (model 2), it would also need to replace the
As such it is possible to organize?