We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50bcf31 commit f2fb41dCopy full SHA for f2fb41d
src/Module.php
@@ -36,7 +36,7 @@ abstract class Module extends ServiceProvider implements ModuleContract
36
37
protected ?string $modulePath = null;
38
39
- protected bool $disableAutomaticFactoryLoading = false;
+ protected bool $enableLegacyFactoryLoading = false;
40
41
/**
42
* Register the module.
@@ -232,7 +232,7 @@ private function registerMiddleware(): void
232
private function registerFactories(): void
233
{
234
if (
235
- $this->disableAutomaticFactoryLoading === false &&
+ $this->enableLegacyFactoryLoading &&
236
method_exists($this, 'loadFactoriesFrom') &&
237
file_exists($this->getModulePath().'/Database/Factories')
238
) {
0 commit comments