Skip to content

Instantly share code, notes, and snippets.

@marlocorridor
Last active December 15, 2016 14:06
Show Gist options
  • Save marlocorridor/12d7779c777594abaf8487724980b315 to your computer and use it in GitHub Desktop.
Save marlocorridor/12d7779c777594abaf8487724980b315 to your computer and use it in GitHub Desktop.
Make laravel seeder work properly - solves class not found
# To work something like
# php .\artisan db:seed --class=UsersTableSeeder
# where `UsersTableSeeder` is a newly created class on seeder file
# you need to execute this first
composer dump-autoload
# Reference :)
#http://laravel.io/forum/01-31-2015-laravel5-seeder-reflectionexception-class-tableseeder-does-not-exist-in-illuminatecontainercontainerphp776
# You should never forget, even when it sounds dummy to dump the autoload files with the command "composer dump-autoload" to make the seeders work properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment