Laravel 4 db seed specific seeder file

You can call individual seed classes by their class name.
From the docs.

By default, the db:seed command runs the DatabaseSeeder class, which
may be used to call other seed classes. However, you may use the
–class option to specify a specific seeder class to run individually:

php artisan db:seed --class=ProductTableSeeder

In the example above, the ProductTableSeeder class should exist in database/seeds.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)