コード例 #1
0
ファイル: UserSeeder.php プロジェクト: threening/laraseda
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     App\User::unguard();
     App\User::create(['name' => 'Mior Muhammad Zaki', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
     App\User::create(['name' => 'Staff ICT 1', 'email' => '*****@*****.**', 'password' => bcrypt('123456')]);
     App\User::reguard();
 }
コード例 #2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     // $this->call(UserTableSeeder::class);
     App\User::unguard();
     App\Company::unguard();
     App\PrimarySkills::unguard();
     App\SecondarySkills::unguard();
     App\Platform::unguard();
     $this->call(CompanyTableSeeder::class);
     $this->call(UserTableSeeder::class);
     $this->call(PrimarySkillsTableSeeder::class);
     $this->call(SecondarySkillsTableSeeder::class);
     $this->call(PlatformsTableSeeder::class);
     App\Platform::reguard();
     App\SecondarySkills::reguard();
     App\PrimarySkills::reguard();
     App\Company::reguard();
     App\User::reguard();
 }