/** * Run the database seeds. * * @return void */ public function run() { DB::table('brand_owners')->truncate(); $faker = Faker::create(); foreach (range(1, 20) as $index) { BrandOwner::create(['name' => $faker->company]); } }