/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // DB::table('students')->delete(); $this->call(StudentsSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // $this->call(UserTableSeeder::class); $this->call(SudoAdminUser::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // $this->call('UserTableSeeder'); $this->call('UsersSeeder'); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(ArticleTableSeeder::class); $this->call(CommentTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); factory('App\\User', 100)->create(); Model::reguard(); // $this->call(UserTableSeeder::class); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // $this->call('UserTableSeeder'); \App\Editor::create(['first_name' => 'Andy', 'last_name' => 'Crockett', 'email' => '*****@*****.**', 'password' => bcrypt('cotton')]); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); DB::statement('SET FOREIGN_KEY_CHECKS=0;'); $this->call(ArticleTableSeeder::class); $this->call(UserTableSeeder::class); $this->call(RoleTableSeeder::class); $this->call(CategoryTableSeeder::class); $this->call(DailyEventTableSeeder::class); $this->call(WeekTableSeeder::class); $this->call(ClanTableSeeder::class); $this->call(SliderTableSeeder::class); $this->call(GalaryTableSeeder::class); $this->call(PopupTableSeeder::class); $this->call(CardTableSeeder::class); $this->call(CardUserTableSeeder::class); $this->call(GiftTableSeeder::class); $this->call(GiftUsersTableSeeder::class); $this->call(ServerTableSeeder::class); $this->call(CharacterTbaleSeeder::class); $this->call(ItemsTableSeeder::class); $this->call(ItemTypeTableSeeder::class); $this->call(GiftFresherTableSeeder::class); $this->call(QuaDatMocTableSeeder::class); DB::statement('SET FOREIGN_KEY_CHECKS=1;'); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call('PostsTableSeeder'); $this->call('CommentsTableSeeder'); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); //call the seeds for the user table to be used. $this->call(UsersTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call('RoleSeeder'); $this->call('UserSeeder'); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call('PostTableSeeder'); $this->call('CategoryTableSeeder'); Model::reguard(); }
public function run() { Model::unguard(); $this->call("TagTableSeeder"); $this->call("PostTableSeeder"); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // $this->call(UserTableSeeder::class); // factory(Location::class, 100)->create(); // // $faker = Faker::create(); // // for ($i=0; $i<3; $i++) { // $location = Location::pickUnused(1); // $target = Target::fromLocationWithCoordinates($location->id, $faker->randomNumber(8)); // $decoys = Target::decoysFromLocations(Location::pickUnused(4)); // $experiment = Experiment::fromTargetAndDecoys($target, $decoys); // $experiment->start_date = Carbon\Carbon::now(); // $experiment->save(); // } // DB::table('users')->truncate(); // // User::create([ // 'name' => 'Anthony', // 'email' => '*****@*****.**', // 'password' => bcrypt('acrv2015'), // 'is_admin' => true // ]); Model::reguard(); }
/** * Run the database seeds. Note these seeds are used for production server. * * @return void */ public function run() { Model::unguard(); $this->call(RequiredTableSeeder::class); $this->call(OptionalTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(ApplicationSeeder::class); $this->call(ActorSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(TeamsTableSeeder::class); $this->call(TournamentsTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $data = json_decode(file_get_contents('database/scraped/coursesFall2016.json')); foreach ($data as $course) { // Requirements for course $faculty_id = Faculty::firstOrCreate(['name' => $course->faculty])->id; $name = substr($course->title, 0, -2); $number = $course->classNum; $credits = 3.0; // TODO delete this from the database $description = 'No description of the course.'; // TODO maybe delete this from the database // end requirements for course // Requirements for scheduled_course $course_id = Course::firstOrCreate(['name' => $name, 'number' => $number, 'credits' => $credits, 'description' => $description, 'faculty_id' => $faculty_id])->id; $session_id = Session::firstOrCreate(['name' => $course->semester])->id; // end requirements for scheduled_course // Requirements for time_slot $scheduled_course_id = ScheduledCourse::firstOrCreate(['course_id' => $course_id, 'session_id' => $session_id])->id; if ($course->day != 'TBA') { $section = $course->section; $room = $course->room; $time_start = $course->timeBegin; $time_end = $course->timeEnd; $course_type_id = $this->getType($course->type)->id; // $days = explode(';', preg_replace('/;$/', '', chunk_split($course->day, 2, ';'))); $day = $course->day; // $day_of_week_id = $this->getDay($day)->id; TimeSlot::firstOrCreate(['scheduled_course_id' => $scheduled_course_id, 'section' => $section, 'room' => $room, 'time_start' => $time_start, 'time_end' => $time_end, 'day' => $day, 'course_type_id' => $course_type_id]); } } Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); DB::statement("SET foreign_key_checks = 0"); DB::table('roles')->truncate(); DB::table('role_user')->truncate(); DB::table('users')->truncate(); DB::table('berita')->truncate(); DB::table('kontak')->truncate(); $this->call(UserTableSeeder::class); $this->call(BeritaTableSeeder::class); $this->call(KontakTableSeeder::class); $admin = App\User::find(1); $admin->attachRole(1); $mahasiswa = App\User::find(2); $mahasiswa->attachRole(2); $akademik = App\User::find(3); $akademik->attachRole(3); $rektor = App\User::find(4); $rektor->attachRole(4); $dekan = App\User::find(5); $dekan->attachRole(5); $kemahasiswaan = App\User::find(6); $kemahasiswaan->attachRole(6); $prodi = App\User::find(7); $prodi->attachRole(7); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(AuthorsTableSeeder::class); $this->call(BooksTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(UserSeeder::class); $this->call(InterestsTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(CountriesSeeder::class); $this->call(UsersSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // $this->call(UserTableSeeder::class); Model::reguard(); $this->call('CarrosSeeder'); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(AdminUserSeeder::class); $this->call(StoresTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { $this->cleanDatabase(); Model::unguard(); $this->call('UserTableSeeder'); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // $this->call(UserTableSeeder::class); //$this->call(CountryTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(CreateUsersSeeder::class); $this->call(CreateEverythingSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); DB::statement('SET FOREIGN_KEY_CHECKS = 0'); DB::table('cijfer')->truncate(); $toetsen = Toets::all(); //$cijfers = factory(Cijfer::class, count($toetsen)*count($leerlingen))->create(); for ($i = 0; $i < count($toetsen); ++$i) { //dd($toetsen[$i]->toetsenlijst()->first()->lesopdracht()->first()->klas()->first()->leerlingen()->first()); $klas = $toetsen[$i]->toetsenlijst()->first()->lesopdracht()->first()->klas()->first()->code; if (substr($klas, 0, 1) != '5') { continue; } $leerlingen = $toetsen[$i]->toetsenlijst()->first()->lesopdracht()->first()->klas()->first()->leerlingen()->get(); for ($j = 0; $j < count($leerlingen); ++$j) { $cijfer = factory(Cijfer::class, 1)->create(); $cijfer["waarde"] = rand(0, 10); $cijfer["toets_id"] = $toetsen[$i]["id"]; $cijfer["leerling_id"] = $leerlingen[$j]["id"]; $cijfer->save(); } } DB::statement('SET FOREIGN_KEY_CHECKS = 1'); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); // $this->call(UserTableSeeder::class); DB::table('users')->insert(['email' => str_random(10) . '@gmail.com', 'name' => str_random(10), 'lastname' => str_random(10), 'password' => bcrypt('secret')]); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); $this->call(UserTableSeeder::class); $this->call(DogTableSeeder::class); Model::reguard(); }
/** * Run the database seeds. * * @return void */ public function run() { Model::unguard(); //\App\Entities\User::truncate(); factory(\App\Entities\User::class, 100)->create(); Model::reguard(); }