User::factory()->create() throws error #34240
Answered
by
martijnd
rockwellll
asked this question in
General
-
Description:so after migrating from Laravel 7.x to 8, everything works good, but i have this problem with factories throwing error whenever i try to run i get the following error and the UserFactory class is from the Laravel docs Steps To Reproduce:php artisan make:factory UserFactory Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
martijnd
Sep 9, 2020
Replies: 1 comment
-
Set your all factory classes namespace to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rockwellll
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set your all factory classes namespace to
Database\Factories