I am using laravel latest version 7.
When I run php artisan db:seed I am getting the following error:
Illuminate\Contracts\Container\BindingResolutionException
Target class [UsersTableSeeder] does not exist.
After writing your seeder, you have to run composer dump-autoload
Make sure that you have this code in your composer.json:
"autoload": {
"classmap": [
"database"
],
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With