Exemplo n.º 1
0
 public function run()
 {
     Expertise::create(['expertise_code' => 'animal']);
     Expertise::create(['expertise_code' => 'blog']);
     Expertise::create(['expertise_code' => 'web']);
     Expertise::create(['expertise_code' => 'internet']);
     Expertise::create(['expertise_code' => 'programming']);
     Expertise::create(['expertise_code' => 'illustrator']);
     Expertise::create(['expertise_code' => 'photoshop']);
     Expertise::create(['expertise_code' => 'premiere']);
     Expertise::create(['expertise_code' => 'drawing']);
     Expertise::create(['expertise_code' => 'painting']);
     Expertise::create(['expertise_code' => 'acting']);
     Expertise::create(['expertise_code' => 'dancing']);
     Expertise::create(['expertise_code' => 'modeling']);
     Expertise::create(['expertise_code' => 'guitar']);
     Expertise::create(['expertise_code' => 'piano']);
     Expertise::create(['expertise_code' => 'violin']);
     Expertise::create(['expertise_code' => 'startup']);
     Expertise::create(['expertise_code' => 'legal']);
     Expertise::create(['expertise_code' => 'tourguide']);
     Expertise::create(['expertise_code' => 'travel']);
     Expertise::create(['expertise_code' => 'essay']);
     Expertise::create(['expertise_code' => 'teaching']);
     Expertise::create(['expertise_code' => 'cooking']);
     Expertise::create(['expertise_code' => 'marketing']);
     Expertise::create(['expertise_code' => 'sports']);
     Expertise::create(['expertise_code' => 'martial']);
     Expertise::create(['expertise_code' => 'workout']);
     Expertise::create(['expertise_code' => 'yoga']);
 }
Exemplo n.º 2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::statement('SET FOREIGN_KEY_CHECKS = 0');
     // disable foreign key constraints
     User::truncate();
     Profile::truncate();
     Language::truncate();
     Expertise::truncate();
     Meetup::truncate();
     Photo::truncate();
     Model::unguard();
     $this->call('UsersTableSeeder');
     $this->call('ProfilesTableSeeder');
     $this->call('LanguagesTableSeeder');
     $this->call('ExpertisesTableSeeder');
     $this->call('MeetupsTableSeeder');
     $this->call('PhotosTableSeeder');
     Model::reguard();
     DB::statement('SET FOREIGN_KEY_CHECKS = 1');
     // enable foreign key constraints
 }
Exemplo n.º 3
0
 public function listExpertises($i, $expertises)
 {
     $expertise = Expertise::find($i);
     $strAttr = $this->inSelections($i, $expertises);
     return '<label class="checkbox">' . '<input type="checkbox" name="expertises[]" value="' . $i . '" data-toggle="checkbox"' . $strAttr . ' />' . trans('expertises.' . $expertise->expertise_code) . '</label>';
 }