public function run() { $faker = Faker\Factory::create(); for ($i = 0; $i < 20; $i++) { SingleMusic::create(['songtitle' => $faker->text, 'singer' => $faker->name, 'mp3' => "http://localhost:8000/upload/send/mp3/8 Days, 8 months, 8 hours.mp3", 'categories' => 'pop', 'language' => 'korea', 'author' => 'phyochan']); } }