Closed cannycookie closed 1 year ago
Heya, thanks for reporting.
We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
laravel new bug-report --github="--public"
Please do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue.
Thanks!
Made a new package as simple as can be and as a result, found the bug was user error 😳😳
The factory was missing the model definition.
protected $model = Layout::class;
Urgh, wasted hours and it was the simplest of things. Case closed.
Steps To Reproduce:
In a package create a Factory and call another factory from within it.
Run the seeder and this error is thrown:-
The namespace is lost due to a borked function modelName() in:-
src/Illuminate/Database/Eloquent/Factories/Factory.php
propose changing:-
to