diff --git a/src/Extracting/InstantiatesExampleModels.php b/src/Extracting/InstantiatesExampleModels.php index 537a01cc..47000ea6 100644 --- a/src/Extracting/InstantiatesExampleModels.php +++ b/src/Extracting/InstantiatesExampleModels.php @@ -69,7 +69,7 @@ protected function instantiateExampleModel( protected function getExampleModelFromFactoryCreate(string $type, array $factoryStates = [], array $relations = []) { $factory = Utils::getModelFactory($type, $factoryStates, $relations); - return $factory->create()->load($relations); + return $factory->create()->load($relations)->refresh(); } /**