Laravel4 Database Seeder error - Call to undefined method SeedDummyOrders::setContainer() Laravel4 Database Seeder error - Call to undefined method SeedDummyOrders::setContainer() database database

Laravel4 Database Seeder error - Call to undefined method SeedDummyOrders::setContainer()


Okay, I have a silly mistake. I forgot to extend this class with DatabaseSeeder.

Now this works.


I had the same issue. Once I ran composer dumpautoload I got the following message:

vagrant@vagrant:/vagrant/getrileynow$ composer dumpautoloadGenerating autoload filesWarning: Ambiguous class resolution, "GenerateEmailFilters" was found in both "/vagrant/project/database/migrations/2017_02_26_033525_generate_email_filters.php" and "/vagrant/project/database/seeds/GenerateEmailFilters.php", the first will be used.

After renaming the seeder file to something else, I was able to run the migration.