Tuesday, August 11, 2015

How to solve [ReflectionException] error in Laravel 5.1 seeding

Resolve [ReflectionException] error in seeding:

Sometimes its make a problem which we are getting in Laravel 5.1 and this is [ReflectionException]

I just got this error when i was running this command for seeding

php artisan db:seed --class=ZoneTableSeeder

and it was showing this error:

  [ReflectionException]                
  Class ZoneTableSeeder does not exist 


For solved out, I just found a solution and its working in my case.

composer dump-autoload

After that run again this command and it will work

php artisan db:seed --class=ZoneTableSeeder

 Thanks

No comments:

Post a Comment