Example #1
0
 public function run()
 {
     Eloquent::unguard();
     DB::table('clinics')->delete();
     Clinic::create(['name' => 'Apollo', 'x_coord' => '12.45', 'y_coord' => '54.23', 'address' => 'Delhi', 'email' => 'apollo', 'description' => 'apollo']);
     Clinic::create(['name' => 'Fortis', 'x_coord' => '56.45', 'y_coord' => '32.23', 'address' => 'Noida', 'email' => 'fortis', 'description' => 'fortis']);
 }
Example #2
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     //$this->call('UserTableSeeder');
     //$this->call('UserGroupSeeder');
     $this->call('PostCommentSeeder');
 }
Example #3
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call(UserTableSeeder::class);
     $tbis->call(EventsTableSeeder::class);
     Eloquent::reguard();
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('RangeCronJobsTableSeeder');
     $this->call('UserMgmtTablesSeeder');
     $this->call('AddTypesTableSeeder');
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('InvoiceTableSeeder');
     $this->call('InvoiceItemTableSeeder');
     $this->call('BookTableSeeder');
 }
Example #6
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     DB::table('tags')->truncate();
     //DB::table('pastes')->truncate();
     $faker = Faker\Factory::create();
     $paste_count = 10;
     $tags = array('php', 'javascript', 'ruby', 'js', 'cpp', 'c++', 'c#', 'go', 'html', 'css');
     for ($i = 0; $i < $paste_count; $i++) {
         $tags_per_paste = rand(1, 3);
         // Generate the paste
         $examplePaste = new Paste();
         $examplePaste->paste = $faker->paragraph;
         $examplePaste->title = $faker->realText(46);
         $examplePaste->expire = $faker->dateTime($max = 'now');
         $examplePaste->token = Str::random(40);
         $examplePaste->private = rand(0, 1);
         $examplePaste->delete_token = Str::random(40);
         $examplePaste->save();
         // Attach some tags to the new paste
         for ($i = 0; $i < $tags_per_paste; ++$i) {
             $exampleTag = new Tag();
             $exampleTag->tag = $tags[rand(0, sizeof($tags) - 1)];
             $exampleTag->paste_id = $examplePaste->id;
             $examplePaste->tags()->save($exampleTag);
         }
         print "Seeded paste with ID of " . $examplePaste->id . "\n";
     }
 }
Example #7
0
 public function run()
 {
     Eloquent::unguard();
     DB::table('years')->delete();
     Year::create(['id' => 1, 'year' => 2015, 'nombre_colegio' => 'LICEO ADVENTISTA LIBERTAD', 'abrev_colegio' => 'LAL', 'nota_minima_aceptada' => 70, 'resolucion' => 'RESOLUCIÓN 2563 DE 2014', 'actual' => true, 'alumnos_can_see_notas' => true]);
     $this->command->info("Año 2014 y 2015 agregados.");
     /* OTRA FORMA ********************************************************************
     		// Abrimos el archivo donde tengo los municipios restantes de Colombia
     		// recorremos los registros y los ingresamos a la base de datos
     		$this->command->info("Leemos los csv para las cuidades colombianas faltantes...");
     
     		$csv = dirname(__FILE__) .'/SqlTables/CuidadesDeColombia.csv'; 
     		$file_handle = fopen($csv, "r");
     
     		while (!feof($file_handle)) {
     		    $line = fgetcsv($file_handle);
     
     		    if (empty($line)) {
     		        continue; // skip blank lines
     		    }
     
     		    $c = array();
     		    $c['nombre']		= $line[0];
     		    $c['pais_codigo']	= $line[1];
     		    $c['distrito']		= $line[2];
     		    $c['poblacion']		= $line[3];
     
     		    //$this->command->info( implode(",", $c));
     		    DB::table('ciudads')->insert($c);
     		}
     		fclose($file_handle);
     */
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $this->cleanDatabase();
     Eloquent::unguard();
     $this->call(EventsSeeder::class);
     $this->call(FishingSectorsSeeder::class);
     $this->call(FishingLocationsSeeder::class);
     $this->call(FishingCategoriesSeeder::class);
     $this->call(UsersCategoriesSeeder::class);
     $this->call(UsersRolesSeeder::class);
     $this->call(UsersPermissionsSeeder::class);
     $this->call(UsersClubsSeeder::class);
     $this->call(UsersSeeder::class);
     $this->call(UsersAddressesSeeder::class);
     $this->call(UsersAvatarsSeeder::class);
     $this->call(UsersTeamsSeeder::class);
     $this->call(SpeciesTypesSeeder::class);
     $this->call(SpeciesSeeder::class);
     $this->call(SpeciesWeightsSeeder::class);
     //$this->call(WeighInsSeeder::class);
     $this->call(WeighInsSitesSeeder::class);
     //$this->call(WeighInsUserEntryDetailsSeeder::class);
     //$this->call(WeighInsEntriesSeeder::class);
     // Make sure pivot tables get seeded last!
     $this->call(UsersPivotRolePermissionSeeder::class);
     $this->call(UsersPivotUserCategorySeeder::class);
     $this->call(UsersPivotTeamUserSeeder::class);
     //$this->call(WeighInsPivotEntryCategorySeeder::class);
     $this->call(BoatsSeeder::class);
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('FieldTableSeeder');
     $this->call('UserTableSeeder');
     $this->call('ThesisTableSeeder');
 }
Example #10
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     // $this->call('UserTableSeeder');
     $this->call('SentrySeeder');
     $this->command->info('Sentry tables seeded!');
 }
Example #11
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('UserTableSeeder');
     $this->call('LogbooksTableSeeder');
     $this->call('LegalsTableSeeder');
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('UsersTableSeeder');
     $this->call('JobsTableSeeder');
     $this->call('ReviewsTableSeeder');
 }
Example #13
0
 public function run()
 {
     $this->command->info('Running UserTableSeeder');
     Eloquent::unguard();
     $account = Account::create(['name' => 'Test Account', 'account_key' => str_random(16), 'timezone_id' => 1]);
     User::create(['email' => TEST_USERNAME, 'username' => TEST_USERNAME, 'account_id' => $account->id, 'password' => Hash::make(TEST_PASSWORD)]);
 }
Example #14
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     //ungoard to allow massassignment
     Eloquent::unguard();
     $this->call('DefaultRoomsSeeder');
     $this->command->info('Default rooms were added to DB');
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('ConstituenciesTableSeeder');
     $this->call('PoliticalPartySeeder');
     $this->call('VotersTableSeeder');
 }
Example #16
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('ConfiguracionSeeder');
     $this->call('NivelAcademicoTableSeeder');
     $this->call('OrganismoTableSeeder');
     $this->call('ParentescoTableSeeder');
     $this->call('RecepcionTableSeeder');
     $this->call('ReferenteTableSeeder');
     $this->call('TenenciaTableSeeder');
     $this->call('TipoAyudaTableSeeder');
     //$this->call('AreaTableSeeder');
     $this->call('TipoViviendaTableSeeder');
     //$this->call('RecaudoTableSeeder');
     $this->call('TipoNacionalidadTableSeeder');
     $this->call('EstadoCivilTableSeeder');
     $this->call('TipoRequerimientoTableSeeder');
     $this->call('ProcesoTableSeeder');
     $this->call('RequerimientoTableSeeder');
     $this->call('EstadoTableSeeder');
     $this->call('MunicipioTableSeeder');
     $this->call('ParroquiaTableSeeder');
     $this->call('GruposTableSeeder');
     $this->call('DepartamentoTableSeeder');
     $this->call('UsersTableSeeder');
 }
 public function run()
 {
     \Eloquent::unguard();
     \DB::table(\Config::get('vcms5.pages_table'))->delete();
     Page::create(array('page_title' => 'Home', 'page_content' => 'This is the home page.', 'page_title_fr' => 'Accueil', 'page_content_fr' => 'This is the home page in French.', 'page_title_es' => 'Incio', 'page_content_es' => 'This is the home page in Spanish.', 'active' => '1', 'meta' => 'meta', 'slug' => 'home', 'slug_fr' => 'accueil', 'slug_es' => 'incio', 'meta_tags' => 'tags'));
     \DB::table(\Config::get('vcms5.menus_table'))->delete();
     Menu::create(array('menu_name' => 'Main Menu'));
     \DB::table(\Config::get('vcms5.menu_items_table'))->delete();
     MenuItem::create(array('menu_id' => '1', 'menu_text_en' => 'Home', 'menu_text_fr' => 'Home', 'menu_text_es' => 'Home', 'url' => '', 'active' => '1', 'has_children' => '0', 'sort_order' => '1', 'page_id' => '1'));
     \DB::table(\Config::get('vcms5.roles_table'))->delete();
     Role::create(array('id' => '1', 'role_name' => 'Manage Pages', 'role' => 'pages'));
     Role::create(array('id' => '2', 'role_name' => 'Manage Calendar Events', 'role' => 'events'));
     Role::create(array('id' => '3', 'role_name' => 'Manage Blogs', 'role' => 'blogs'));
     Role::create(array('id' => '4', 'role_name' => 'Manage Galleries', 'role' => 'galleries'));
     Role::create(array('id' => '5', 'role_name' => 'Manage Users', 'role' => 'users'));
     Role::create(array('id' => '6', 'role_name' => 'Manage Menus', 'role' => 'menus'));
     Role::create(array('id' => '7', 'role_name' => 'Manage News', 'role' => 'news'));
     Role::create(array('id' => '8', 'role_name' => 'Manage FAQs', 'role' => 'faqs'));
     \DB::table('users')->delete();
     User::create(array('id' => '1', 'email' => '*****@*****.**', 'first_name' => 'Trevor', 'last_name' => 'Sawler', 'password' => \Hash::make('marlow11'), 'user_active' => 1, 'access_level' => 3));
     \DB::table(\Config::get('vcms5.user_roles_table'))->delete();
     UserRole::create(array('id' => '1', 'user_id' => '1', 'role_id' => '1', 'role' => 'pages'));
     UserRole::create(array('id' => '2', 'user_id' => '1', 'role_id' => '2', 'role' => 'events'));
     UserRole::create(array('id' => '3', 'user_id' => '1', 'role_id' => '3', 'role' => 'blogs'));
     UserRole::create(array('id' => '4', 'user_id' => '1', 'role_id' => '4', 'role' => 'galleries'));
     UserRole::create(array('id' => '5', 'user_id' => '1', 'role_id' => '5', 'role' => 'users'));
     UserRole::create(array('id' => '6', 'user_id' => '1', 'role_id' => '6', 'role' => 'menus'));
     UserRole::create(array('id' => '7', 'user_id' => '1', 'role_id' => '7', 'role' => 'news'));
     UserRole::create(array('id' => '8', 'user_id' => '1', 'role_id' => '8', 'role' => 'faqs'));
 }
Example #18
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('CategoryTableSeeder');
     $this->call('CandidateTableSeeder');
     // $this->call('UserTableSeeder');
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('UsersTableSeeder');
     $this->call('PostsTableSeeder');
     $this->call('FavoritesTableSeeder');
 }
Example #20
0
 public function edit($item)
 {
     $dbs = new DBconnect();
     $doc = $dbs->find($item);
     $post = Input::get();
     //remove csrf token
     if (array_key_exists('_token', $post)) {
         unset($post['_token']);
     }
     Eloquent::unguard();
     if ($doc) {
         if ($doc->update($post)) {
             return Response::json(array('message' => 'success'));
         } else {
             return Response::json(array('message' => 'error'));
         }
     } else {
         $doc = $dbs->where('memberName', $item);
         if (isset($doc->get()[0])) {
             if ($doc->update($post)) {
                 return Response::json(array('message' => 'success'));
             } else {
                 return Response::json(array('message' => 'error'));
             }
         } else {
             return Response::json(array('message' => 'not found'));
         }
     }
 }
Example #21
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('UserSeeder');
     // $this->call('TransportasiSeeder');
     // $this->call('PasanganSeeder');
 }
 /**
  * Run the Profiles table seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     Profile::create(['id' => 1, 'user_id' => 1, 'bio' => 'I like to soccer, women, and beer.', 'location' => 'Long Beach, CA', 'twitter_username' => 'johnsfeed', 'instagram_username' => 'johnwashere']);
     Profile::create(['id' => 2, 'user_id' => 2, 'bio' => 'I like to cooking, reading, and swimming.', 'location' => 'Oceanside, CA', 'twitter_username' => 'karenwho', 'instagram_username' => 'karenthequeen']);
     Profile::create(['id' => 3, 'user_id' => 3, 'bio' => 'I like eating raw food and yoga.', 'location' => 'San Francisco, CA', 'twitter_username' => 'janesworld', 'instagram_username' => 'janedidit']);
 }
Example #23
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('RolesTableSeeder');
     $this->call('SedesTableSeeder');
     $this->call('UsuariosTableSeeder');
 }
Example #24
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('UsersTableSeeder');
     $this->call('BranchesTableSeeder');
     $this->call('RolesTableSeeder');
 }
Example #25
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('EmployeesTableSeeder');
     $this->call('TasksTableSeeder');
     $this->call('CategoriesTableSeeder');
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     $this->call('ApiKeysTableSeeder');
     $this->call('UsersTableSeeder');
     $this->call('RolesPermissionsTableSeeder');
 }
 public function run()
 {
     Eloquent::unguard();
     // DB::table('packages')->delete();
     $currentDate = date('Y-m-d');
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 5 days')), 'booking_time' => '01:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 5 days')), 'booking_time' => '23:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 10 days')), 'booking_time' => '13:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 10 days')), 'booking_time' => '14:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 11 days')), 'booking_time' => '13:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 11 days')), 'booking_time' => '16:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 12 days')), 'booking_time' => '10:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 12 days')), 'booking_time' => '14:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 13 days')), 'booking_time' => '16:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 13 days')), 'booking_time' => '17:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 14 days')), 'booking_time' => '13:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 14 days')), 'booking_time' => '11:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 15 days')), 'booking_time' => '12:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 15 days')), 'booking_time' => '13:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 16 days')), 'booking_time' => '16:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 16 days')), 'booking_time' => '19:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 17 days')), 'booking_time' => '13:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 17 days')), 'booking_time' => '14:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 17 days')), 'booking_time' => '15:00'));
     BookingTimes::create(array('booking_date' => date('Y-m-d', strtotime($currentDate . ' + 17 days')), 'booking_time' => '16:00'));
 }
Example #28
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     DB::table('products')->delete();
     Product::create(array('name' => 'krasse Jacke!', 'article_number' => '823928139123', 'description' => 'super tolle Jacke, die es ordentlich in sich hat. Kaum wo anders zu finden. Selbst wenn man ewig sucht, wird man nicht so eine tolle Jacke finden!'));
     Product::create(array('name' => 'coole Brille!', 'article_number' => '82399991232', 'description' => 'Eine sehr modische Brille'));
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker::Create();
     $name = $faker->name;
     Eloquent::unguard();
     Writers::create(['name' => $name, 'bio' => 'This is just a sample Writer. There is nothing to say here!', 'image' => '/images/writers/SampleWriter.jpg', 'slug' => str_replace(' ', '-', $name)]);
 }
Example #30
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Eloquent::unguard();
     User::create(array('username' => 'admin', 'email' => '*****@*****.**', 'password' => Hash::make('123'), 'admin' => true));
     User::create(array('username' => 'random_user', 'email' => 'random_user@random_user.com', 'password' => Hash::make('123'), 'admin' => false));
     User::create(array('username' => 'someone88', 'email' => '*****@*****.**', 'password' => Hash::make('123'), 'admin' => false));
 }