Example #1
0
 public function run()
 {
     DB::table('clubs')->delete();
     Club::create(array('nom' => '---', 'nomcourt' => '---', 'region_id' => 1));
     Club::create(array('nom' => 'Golf club de Rigenée', 'nomcourt' => 'Rigenée', 'region_id' => 4));
     Club::create(array('nom' => 'Golf Club de Pierpont', 'nomcourt' => 'Pierpont', 'region_id' => 4));
     Club::create(array('nom' => 'Royal Golf Club de Waterloo', 'nomcourt' => 'Waterloo', 'region_id' => 4));
     Club::create(array('nom' => 'Golf de Bondues', 'nomcourt' => 'Bondues', 'region_id' => 33));
     Club::create(array('nom' => 'Golf de Lille-Métropole', 'nomcourt' => 'Lille Métropole', 'region_id' => 33));
     Club::create(array('nom' => 'Golf du Grand-Ducal', 'nomcourt' => 'Grand Ducal', 'region_id' => 41));
     DB::table('parcours')->delete();
     Parcour::create(array('club_id' => 1, 'nom' => '---', 'nbtrous' => 18));
     Parcour::create(array('club_id' => 2, 'nom' => 'Rigenée', 'nbtrous' => 18));
     Parcour::create(array('club_id' => 3, 'nom' => 'Grand Pierpont', 'nbtrous' => 18));
     Parcour::create(array('club_id' => 4, 'nom' => 'La Marache', 'nbtrous' => 18));
     Parcour::create(array('club_id' => 4, 'nom' => 'Le Lion', 'nbtrous' => 18));
     Parcour::create(array('club_id' => 4, 'nom' => 'Bois Héros', 'nbtrous' => 9));
     Parcour::create(array('club_id' => 5, 'nom' => 'Hawtree', 'nbtrous' => 18));
     Parcour::create(array('club_id' => 5, 'nom' => 'Trent Jones', 'nbtrous' => 18));
     Parcour::create(array('club_id' => 6, 'nom' => 'Lille-Métropole', 'nbtrous' => 18));
     Parcour::create(array('club_id' => 7, 'nom' => 'Grand-Ducal', 'nbtrous' => 18));
 }