We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fff733f commit aa1128cCopy full SHA for aa1128c
src/Illuminate/Database/Eloquent/Factories/HasFactory.php
@@ -52,7 +52,7 @@ protected static function getUseFactoryAttribute()
52
if ($attributes !== []) {
53
$useFactory = $attributes[0]->newInstance();
54
55
- $factory = new $useFactory->factoryClass;
+ $factory = $useFactory->factoryClass::new();
56
57
$factory->guessModelNamesUsing(fn () => static::class);
58
0 commit comments