Skip to content
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

db:seed get error in Laravel8 #1

Open
edge104 opened this issue Dec 8, 2020 · 3 comments
Open

db:seed get error in Laravel8 #1

edge104 opened this issue Dec 8, 2020 · 3 comments

Comments

@edge104
Copy link

edge104 commented Dec 8, 2020

php artisan db:seed --class=ProductsTableSeeder

Illuminate\Contracts\Container\BindingResolutionException

Target class [Database\Seeders\ProductsTableSeeder] does not exist.

@edge104 edge104 changed the title db:seed get error db:seed get error in Laravel8 Dec 8, 2020
@d3turnes
Copy link
Owner

d3turnes commented Dec 8, 2020

@edge104
Copy link
Author

edge104 commented Dec 12, 2020

I tried to make it successfully in laravel5.8. If it is in laravel8, I do not use ProductsTableSeeder, but create the data by myself. Is there anything else I need to pay attention to in other related files?

@tuaititecnologia
Copy link

tuaititecnologia commented Oct 18, 2021

You need to add:

namespace Database\Seeders;

to the seeders.

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

3 participants