use migration to run seeder
<?php
// inside migration file
public function up()
{
    // Create a table here
    // Call seeder
    Artisan::call('db:seed', [
        '--class' => 'SampleDataSeeder',
        '--force' => true // <--- add this line
    ]);
}
