/** * 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(); }
/** * Run the database seeds. * * @return void */ public function run() { App\User::unguard(); App\Article::unguard(); App\Snippet::unguard(); App\Tag::unguard(); $this->call('UserTableSeeder'); $this->call('ArticleTableSeeder'); $this->call('SnippetTableSeeder'); $this->call('TagTableSeeder'); }
/** * 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(); }