Skip to content

DatabaseSeeder can't find UserFactory #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nonsintetic opened this issue Sep 18, 2024 · 1 comment
Open

DatabaseSeeder can't find UserFactory #1

nonsintetic opened this issue Sep 18, 2024 · 1 comment

Comments

@nonsintetic
Copy link

The app/Models/User.php class should use HasFactory.

Right now the artisan db:seed command errors out because it can't find the user factory to create the example user when seeding.

@levizoesch
Copy link

levizoesch commented Dec 1, 2024

Add use HasFactory; to the user model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants