Skip to content

Commit f2fb41d

Browse files
committed
Rename attribute to enable legacy factory loading
1 parent 50bcf31 commit f2fb41d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Module.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ abstract class Module extends ServiceProvider implements ModuleContract
3636

3737
protected ?string $modulePath = null;
3838

39-
protected bool $disableAutomaticFactoryLoading = false;
39+
protected bool $enableLegacyFactoryLoading = false;
4040

4141
/**
4242
* Register the module.
@@ -232,7 +232,7 @@ private function registerMiddleware(): void
232232
private function registerFactories(): void
233233
{
234234
if (
235-
$this->disableAutomaticFactoryLoading === false &&
235+
$this->enableLegacyFactoryLoading &&
236236
method_exists($this, 'loadFactoriesFrom') &&
237237
file_exists($this->getModulePath().'/Database/Factories')
238238
) {

0 commit comments

Comments
 (0)