-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Closed
Labels
Description
Laravel Version
11.43
PHP Version
8.3
Database Driver & Version
No response
Description
Seems like the UseFactory Attribute isn't working as expected. I'm having an issue since upgrading that everytime i run
php artisan migrate:fresh --seed
i'm getting an error that states:
Class Illuminate\Database\Eloquent\Factories\Factory does not have a property named modelNameResolver
The only way i can fix it is with the steps below
Steps To Reproduce
Seems like this bug was closed but hasn't been resolved yet by: #54642
The way i have fixed it is in src/Illuminate/Database/Eloquent/Factories/Factory.php
Seems to be removing ?? static::$modelNameResolvers[self::class]
fixes the issue but im not sure if thats correct
lucacastelnuovo