diff --git a/src/Support/DomainAutoloader.php b/src/Support/DomainAutoloader.php index f107dc0..9993e41 100644 --- a/src/Support/DomainAutoloader.php +++ b/src/Support/DomainAutoloader.php @@ -110,7 +110,7 @@ protected function handleFactories(): void { Factory::guessFactoryNamesUsing(function (string $modelName) { if (DomainResolver::isDomainClass($modelName)) { - return DomainFactory::factoryForModel($modelName); + return DomainFactory::resolveFactoryName($modelName); } $appNamespace = static::appNamespace();