Last active
December 15, 2016 14:06
-
-
Save marlocorridor/12d7779c777594abaf8487724980b315 to your computer and use it in GitHub Desktop.
Make laravel seeder work properly - solves class not found
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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