示例#1
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $patches = Patch::all();
     foreach ($patches as $patch) {
         $this->generateTags($patch);
     }
 }
示例#2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $patches = Patch::all();
     foreach ($patches as $patch) {
         $this->generateSamples($patch, 'youtube');
         $this->generateSamples($patch, 'soundcloud');
     }
 }