Saturday, January 31, 2015

[Laravel][Resolved] php artisan db:seed [ReflectionException] Class xxx does not exist


Firstly, you should check is the file with class name really existing in your seeds folder, (for my case my class is Class ProjectsTableSeeder)
Path: your_laravel_root/database/seeds/


And then check if the class name in that php file same to the error message mentioned:



If you checked all mentioned above are correct, you can run the seeds command again, but make sure you have run the command in red before “php artisan db:seed”:

composer dump-autoload
php artisan db:seed

or use this Instead:
php artisan migrate:refresh –seed

Result:


Reference:
https://www.flynsarmy.com/2015/02/creating-a-basic-todo-application-in-laravel-5-part-1/

No comments :

Post a Comment