当前位置: 首页>>代码示例>>PHP>>正文


PHP Country::create方法代码示例

本文整理汇总了PHP中app\Country::create方法的典型用法代码示例。如果您正苦于以下问题:PHP Country::create方法的具体用法?PHP Country::create怎么用?PHP Country::create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在app\Country的用法示例。


在下文中一共展示了Country::create方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: run

 public function run()
 {
     $faker = Faker\Factory::create();
     for ($i = 0; $i < 20; $i++) {
         \App\Country::create(['title' => $faker->unique()->country]);
     }
 }
开发者ID:ntamvl,项目名称:admin-3-demo,代码行数:7,代码来源:CountriesSeeder.php

示例2: run

 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('countries')->delete();
     Country::create(['code' => 'ch', 'en' => ['name' => 'Switzerland'], 'fr' => ['name' => 'Suisse'], 'de' => ['name' => 'Schweiz']]);
     Country::create(['code' => 'fr', 'en' => ['name' => 'France'], 'fr' => ['name' => 'France'], 'de' => ['name' => 'Frankreich']]);
     Country::create(['code' => 'de', 'en' => ['name' => 'Germany'], 'fr' => ['name' => 'Allemagne'], 'de' => ['name' => 'Deutschland']]);
 }
开发者ID:HE-Arc,项目名称:demo-laravel-application,代码行数:12,代码来源:CountriesSeeder.php

示例3: run

 public function run()
 {
     DB::table('countries')->delete();
     Country::create(['name' => 'Vietnam']);
     Country::create(['name' => 'France']);
     Country::create(['name' => 'England']);
     Country::create(['name' => 'China']);
 }
开发者ID:AlSt2015,项目名称:jobs4creative,代码行数:8,代码来源:DatabaseSeeder.php

示例4: run

 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('countries')->delete();
     $countriesJson = File::get(storage_path() . "/jsondata/countries.json");
     $countries = json_decode($countriesJson, true);
     foreach ($countries as $country) {
         Country::create(array('name' => $country->common, 'code' => $country->cca2));
     }
 }
开发者ID:Alcondez,项目名称:planes,代码行数:14,代码来源:CountriesTableSedder.php

示例5: run

 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('countries')->delete();
     $json = File::get(storage_path() . '/json/country_with_dialCodes.json');
     $data = json_decode($json);
     foreach ($data as $object) {
         Country::create(['alpha2_code' => $object->alpha2_code, 'alpha3_code' => $object->alpha3_code, 'name' => $object->name, 'dial_code' => $object->dial_code]);
     }
 }
开发者ID:harshiarora,项目名称:csi-1,代码行数:14,代码来源:CountrySeeder.php

示例6: run

 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Country::create(['id' => 32, 'name' => 'Argentina']);
     Country::create(['id' => 76, 'name' => 'Brasil']);
     Country::create(['id' => 152, 'name' => 'Chile']);
     Country::create(['id' => 188, 'name' => 'Costa Rica']);
     Country::create(['id' => 218, 'name' => 'Ecuador']);
     Country::create(['id' => 222, 'name' => 'El Salvador']);
     Country::create(['id' => 320, 'name' => 'Guatemala']);
     Country::create(['id' => 340, 'name' => 'Honduras']);
     Country::create(['id' => 484, 'name' => 'México']);
     Country::create(['id' => 558, 'name' => 'Nicaragua']);
     Country::create(['id' => 591, 'name' => 'Panamá']);
     Country::create(['id' => 600, 'name' => 'Paraguay']);
     Country::create(['id' => 604, 'name' => 'Perú']);
     Country::create(['id' => 620, 'name' => 'Portugal']);
     Country::create(['id' => 724, 'name' => 'España']);
     Country::create(['id' => 840, 'name' => 'Estados Unidos']);
     Country::create(['id' => 858, 'name' => 'Uruguay']);
     Country::create(['id' => 859, 'name' => 'Republica Dominicana']);
 }
开发者ID:etciberoamerica,项目名称:robotica,代码行数:26,代码来源:CountrySeeder.php

示例7: storeCountry

 /**
  * Store newly created Country in storage
  * @param MyConfigRequest $request
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
  */
 public function storeCountry(MyConfigRequest $request)
 {
     Country::create($request->all());
     Session::flash('success_message', 'Country Inserted Successfully!');
     return redirect('config');
 }
开发者ID:smartrahat,项目名称:zamzam,代码行数:11,代码来源:MyConfigController.php

示例8: run

 public function run()
 {
     DB::table('countries')->delete();
     Country::create(['id' => 1, 'name' => 'United State']);
 }
开发者ID:huynt57,项目名称:crawler-web,代码行数:5,代码来源:CountriesTableSeeder.php

示例9: run

 /**
  * Run the database seeds.
  */
 public function run()
 {
     Country::create(['id' => 1, 'name' => 'Chile', 'prefix' => 'CL']);
 }
开发者ID:juboba,项目名称:Luminosity,代码行数:7,代码来源:CountryTableSeeder.php

示例10: run

 public function run()
 {
     DB::table('countries')->delete();
     Country::create(['id' => '1', 'country' => 'Afghanistan	']);
     Country::create(['id' => '2', 'country' => 'Aland	']);
     Country::create(['id' => '3', 'country' => 'Albania	']);
     Country::create(['id' => '4', 'country' => 'Algeria	']);
     Country::create(['id' => '5', 'country' => 'American Samoa	']);
     Country::create(['id' => '6', 'country' => 'Andorra	']);
     Country::create(['id' => '7', 'country' => 'Angola	']);
     Country::create(['id' => '8', 'country' => 'Anguilla	']);
     Country::create(['id' => '9', 'country' => 'Antarctica	']);
     Country::create(['id' => '10', 'country' => 'Antigua and Barbuda	']);
     Country::create(['id' => '11', 'country' => 'Argentina	']);
     Country::create(['id' => '12', 'country' => 'Armenia	']);
     Country::create(['id' => '13', 'country' => 'Aruba	']);
     Country::create(['id' => '14', 'country' => 'Australia	']);
     Country::create(['id' => '15', 'country' => 'Austria	']);
     Country::create(['id' => '16', 'country' => 'Azerbaijan	']);
     Country::create(['id' => '17', 'country' => 'Bahamas	']);
     Country::create(['id' => '18', 'country' => 'Bahrain	']);
     Country::create(['id' => '19', 'country' => 'Bangladesh	']);
     Country::create(['id' => '20', 'country' => 'Barbados	']);
     Country::create(['id' => '21', 'country' => 'Belarus	']);
     Country::create(['id' => '22', 'country' => 'Belgium	']);
     Country::create(['id' => '23', 'country' => 'Belize	']);
     Country::create(['id' => '24', 'country' => 'Benin	']);
     Country::create(['id' => '25', 'country' => 'Bermuda	']);
     Country::create(['id' => '26', 'country' => 'Bhutan	']);
     Country::create(['id' => '27', 'country' => 'Bolivia	']);
     Country::create(['id' => '28', 'country' => 'Bonaire	']);
     Country::create(['id' => '29', 'country' => 'Bosnia and Herzegovina	']);
     Country::create(['id' => '30', 'country' => 'Botswana	']);
     Country::create(['id' => '31', 'country' => 'Bouvet Island	']);
     Country::create(['id' => '32', 'country' => 'Brazil	']);
     Country::create(['id' => '33', 'country' => 'British Indian Ocean Territory	']);
     Country::create(['id' => '34', 'country' => 'British Virgin Islands	']);
     Country::create(['id' => '35', 'country' => 'Brunei	']);
     Country::create(['id' => '36', 'country' => 'Bulgaria	']);
     Country::create(['id' => '37', 'country' => 'Burkina Faso	']);
     Country::create(['id' => '38', 'country' => 'Burundi	']);
     Country::create(['id' => '39', 'country' => 'Cambodia	']);
     Country::create(['id' => '40', 'country' => 'Cameroon	']);
     Country::create(['id' => '41', 'country' => 'Canada	']);
     Country::create(['id' => '42', 'country' => 'Cape Verde	']);
     Country::create(['id' => '43', 'country' => 'Cayman Islands	']);
     Country::create(['id' => '44', 'country' => 'Central African Republic	']);
     Country::create(['id' => '45', 'country' => 'Chad	']);
     Country::create(['id' => '46', 'country' => 'Chile	']);
     Country::create(['id' => '47', 'country' => 'China	']);
     Country::create(['id' => '48', 'country' => 'Christmas Island	']);
     Country::create(['id' => '49', 'country' => 'Cocos [Keeling] Islands	']);
     Country::create(['id' => '50', 'country' => 'Colombia	']);
     Country::create(['id' => '51', 'country' => 'Comoros	']);
     Country::create(['id' => '52', 'country' => 'Cook Islands	']);
     Country::create(['id' => '53', 'country' => 'Costa Rica	']);
     Country::create(['id' => '54', 'country' => 'Croatia	']);
     Country::create(['id' => '55', 'country' => 'Cuba	']);
     Country::create(['id' => '56', 'country' => 'Curacao	']);
     Country::create(['id' => '57', 'country' => 'Cyprus	']);
     Country::create(['id' => '58', 'country' => 'Czech Republic	']);
     Country::create(['id' => '59', 'country' => 'Democratic Republic of the Congo	']);
     Country::create(['id' => '60', 'country' => 'Denmark	']);
     Country::create(['id' => '61', 'country' => 'Djibouti	']);
     Country::create(['id' => '62', 'country' => 'Dominica	']);
     Country::create(['id' => '63', 'country' => 'Dominican Republic	']);
     Country::create(['id' => '64', 'country' => 'East Timor	']);
     Country::create(['id' => '65', 'country' => 'Ecuador	']);
     Country::create(['id' => '66', 'country' => 'Egypt	']);
     Country::create(['id' => '67', 'country' => 'El Salvador	']);
     Country::create(['id' => '68', 'country' => 'Equatorial Guinea	']);
     Country::create(['id' => '69', 'country' => 'Eritrea	']);
     Country::create(['id' => '70', 'country' => 'Estonia	']);
     Country::create(['id' => '71', 'country' => 'Ethiopia	']);
     Country::create(['id' => '72', 'country' => 'Falkland Islands	']);
     Country::create(['id' => '73', 'country' => 'Faroe Islands	']);
     Country::create(['id' => '74', 'country' => 'Fiji	']);
     Country::create(['id' => '75', 'country' => 'Finland	']);
     Country::create(['id' => '76', 'country' => 'France	']);
     Country::create(['id' => '77', 'country' => 'French Guiana	']);
     Country::create(['id' => '78', 'country' => 'French Polynesia	']);
     Country::create(['id' => '79', 'country' => 'French Southern Territories	']);
     Country::create(['id' => '80', 'country' => 'Gabon	']);
     Country::create(['id' => '81', 'country' => 'Gambia	']);
     Country::create(['id' => '82', 'country' => 'Georgia	']);
     Country::create(['id' => '83', 'country' => 'Germany	']);
     Country::create(['id' => '84', 'country' => 'Ghana	']);
     Country::create(['id' => '85', 'country' => 'Gibraltar	']);
     Country::create(['id' => '86', 'country' => 'Greece	']);
     Country::create(['id' => '87', 'country' => 'Greenland	']);
     Country::create(['id' => '88', 'country' => 'Grenada	']);
     Country::create(['id' => '89', 'country' => 'Guadeloupe	']);
     Country::create(['id' => '90', 'country' => 'Guam	']);
     Country::create(['id' => '91', 'country' => 'Guatemala	']);
     Country::create(['id' => '92', 'country' => 'Guernsey	']);
     Country::create(['id' => '93', 'country' => 'Guinea	']);
     Country::create(['id' => '94', 'country' => 'Guinea-Bissau	']);
     Country::create(['id' => '95', 'country' => 'Guyana	']);
     Country::create(['id' => '96', 'country' => 'Haiti	']);
     Country::create(['id' => '97', 'country' => 'Heard Island and McDonald Islands	']);
//.........这里部分代码省略.........
开发者ID:skafetzo,项目名称:SPtool,代码行数:101,代码来源:DatabaseSeeder.php

示例11: store

 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreateCountryRequest $request)
 {
     Country::create(Request::all());
     return redirect()->route('settings.country.index');
 }
开发者ID:raulbravo23,项目名称:salepoint,代码行数:10,代码来源:CountrysController.php

示例12: run

 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     //
     \App\Country::create(['iso' => 'AF', 'name' => 'AFGHANISTAN', 'nicename' => 'Afghanistan', 'iso3' => 'AFG', 'numcode' => 4, 'phonecode' => 93]);
     \App\Country::create(['iso' => 'AL', 'name' => 'ALBANIA', 'nicename' => 'Albania', 'iso3' => 'ALB', 'numcode' => 8, 'phonecode' => 355]);
     \App\Country::create(['iso' => 'DZ', 'name' => 'ALGERIA', 'nicename' => 'Algeria', 'iso3' => 'DZA', 'numcode' => 12, 'phonecode' => 213]);
     \App\Country::create(['iso' => 'AS', 'name' => 'AMERICAN SAMOA', 'nicename' => 'American Samoa', 'iso3' => 'ASM', 'numcode' => 16, 'phonecode' => 1684]);
     \App\Country::create(['iso' => 'AD', 'name' => 'ANDORRA', 'nicename' => 'Andorra', 'iso3' => 'AND', 'numcode' => 20, 'phonecode' => 376]);
     \App\Country::create(['iso' => 'AO', 'name' => 'ANGOLA', 'nicename' => 'Angola', 'iso3' => 'AGO', 'numcode' => 24, 'phonecode' => 244]);
     \App\Country::create(['iso' => 'AI', 'name' => 'ANGUILLA', 'nicename' => 'Anguilla', 'iso3' => 'AIA', 'numcode' => 660, 'phonecode' => 1264]);
     \App\Country::create(['iso' => 'AQ', 'name' => 'ANTARCTICA', 'nicename' => 'Antarctica', 'phonecode' => 0]);
     \App\Country::create(['iso' => 'AG', 'name' => 'ANTIGUA AND BARBUDA', 'nicename' => 'Antigua and Barbuda', 'iso3' => 'ATG', 'numcode' => 28, 'phonecode' => 1268]);
     \App\Country::create(['iso' => 'AR', 'name' => 'ARGENTINA', 'nicename' => 'Argentina', 'iso3' => 'ARG', 'numcode' => 32, 'phonecode' => 54]);
     \App\Country::create(['iso' => 'AM', 'name' => 'ARMENIA', 'nicename' => 'Armenia', 'iso3' => 'ARM', 'numcode' => 51, 'phonecode' => 374]);
     \App\Country::create(['iso' => 'AW', 'name' => 'ARUBA', 'nicename' => 'Aruba', 'iso3' => 'ABW', 'numcode' => 533, 'phonecode' => 297]);
     \App\Country::create(['iso' => 'AU', 'name' => 'AUSTRALIA', 'nicename' => 'Australia', 'iso3' => 'AUS', 'numcode' => 36, 'phonecode' => 61]);
     \App\Country::create(['iso' => 'AT', 'name' => 'AUSTRIA', 'nicename' => 'Austria', 'iso3' => 'AUT', 'numcode' => 40, 'phonecode' => 43]);
     \App\Country::create(['iso' => 'AZ', 'name' => 'AZERBAIJAN', 'nicename' => 'Azerbaijan', 'iso3' => 'AZE', 'numcode' => 31, 'phonecode' => 994]);
     \App\Country::create(['iso' => 'BS', 'name' => 'BAHAMAS', 'nicename' => 'Bahamas', 'iso3' => 'BHS', 'numcode' => 44, 'phonecode' => 1242]);
     \App\Country::create(['iso' => 'BH', 'name' => 'BAHRAIN', 'nicename' => 'Bahrain', 'iso3' => 'BHR', 'numcode' => 48, 'phonecode' => 973]);
     \App\Country::create(['iso' => 'BD', 'name' => 'BANGLADESH', 'nicename' => 'Bangladesh', 'iso3' => 'BGD', 'numcode' => 50, 'phonecode' => 880]);
     \App\Country::create(['iso' => 'BB', 'name' => 'BARBADOS', 'nicename' => 'Barbados', 'iso3' => 'BRB', 'numcode' => 52, 'phonecode' => 1246]);
     \App\Country::create(['iso' => 'BY', 'name' => 'BELARUS', 'nicename' => 'Belarus', 'iso3' => 'BLR', 'numcode' => 112, 'phonecode' => 375]);
     \App\Country::create(['iso' => 'BE', 'name' => 'BELGIUM', 'nicename' => 'Belgium', 'iso3' => 'BEL', 'numcode' => 56, 'phonecode' => 32]);
     \App\Country::create(['iso' => 'BZ', 'name' => 'BELIZE', 'nicename' => 'Belize', 'iso3' => 'BLZ', 'numcode' => 84, 'phonecode' => 501]);
     \App\Country::create(['iso' => 'BJ', 'name' => 'BENIN', 'nicename' => 'Benin', 'iso3' => 'BEN', 'numcode' => 204, 'phonecode' => 229]);
     \App\Country::create(['iso' => 'BM', 'name' => 'BERMUDA', 'nicename' => 'Bermuda', 'iso3' => 'BMU', 'numcode' => 60, 'phonecode' => 1441]);
     \App\Country::create(['iso' => 'BT', 'name' => 'BHUTAN', 'nicename' => 'Bhutan', 'iso3' => 'BTN', 'numcode' => 64, 'phonecode' => 975]);
     \App\Country::create(['iso' => 'BO', 'name' => 'BOLIVIA', 'nicename' => 'Bolivia', 'iso3' => 'BOL', 'numcode' => 68, 'phonecode' => 591]);
     \App\Country::create(['iso' => 'BA', 'name' => 'BOSNIA AND HERZEGOVINA', 'nicename' => 'Bosnia and Herzegovina', 'iso3' => 'BIH', 'numcode' => 70, 'phonecode' => 387]);
     \App\Country::create(['iso' => 'BW', 'name' => 'BOTSWANA', 'nicename' => 'Botswana', 'iso3' => 'BWA', 'numcode' => 72, 'phonecode' => 267]);
     \App\Country::create(['iso' => 'BV', 'name' => 'BOUVET ISLAND', 'nicename' => 'Bouvet Island', 'phonecode' => 0]);
     \App\Country::create(['iso' => 'BR', 'name' => 'BRAZIL', 'nicename' => 'Brazil', 'iso3' => 'BRA', 'numcode' => 76, 'phonecode' => 55]);
     \App\Country::create(['iso' => 'IO', 'name' => 'BRITISH INDIAN OCEAN TERRITORY', 'nicename' => 'British Indian Ocean Territory', 'phonecode' => 246]);
     \App\Country::create(['iso' => 'BN', 'name' => 'BRUNEI DARUSSALAM', 'nicename' => 'Brunei Darussalam', 'iso3' => 'BRN', 'numcode' => 96, 'phonecode' => 673]);
     \App\Country::create(['iso' => 'BG', 'name' => 'BULGARIA', 'nicename' => 'Bulgaria', 'iso3' => 'BGR', 'numcode' => 100, 'phonecode' => 359]);
     \App\Country::create(['iso' => 'BF', 'name' => 'BURKINA FASO', 'nicename' => 'Burkina Faso', 'iso3' => 'BFA', 'numcode' => 854, 'phonecode' => 226]);
     \App\Country::create(['iso' => 'BI', 'name' => 'BURUNDI', 'nicename' => 'Burundi', 'iso3' => 'BDI', 'numcode' => 108, 'phonecode' => 257]);
     \App\Country::create(['iso' => 'KH', 'name' => 'CAMBODIA', 'nicename' => 'Cambodia', 'iso3' => 'KHM', 'numcode' => 116, 'phonecode' => 855]);
     \App\Country::create(['iso' => 'CM', 'name' => 'CAMEROON', 'nicename' => 'Cameroon', 'iso3' => 'CMR', 'numcode' => 120, 'phonecode' => 237]);
     \App\Country::create(['iso' => 'CA', 'name' => 'CANADA', 'nicename' => 'Canada', 'iso3' => 'CAN', 'numcode' => 124, 'phonecode' => 1]);
     \App\Country::create(['iso' => 'CV', 'name' => 'CAPE VERDE', 'nicename' => 'Cape Verde', 'iso3' => 'CPV', 'numcode' => 132, 'phonecode' => 238]);
     \App\Country::create(['iso' => 'KY', 'name' => 'CAYMAN ISLANDS', 'nicename' => 'Cayman Islands', 'iso3' => 'CYM', 'numcode' => 136, 'phonecode' => 1345]);
     \App\Country::create(['iso' => 'CF', 'name' => 'CENTRAL AFRICAN REPUBLIC', 'nicename' => 'Central African Republic', 'iso3' => 'CAF', 'numcode' => 140, 'phonecode' => 236]);
     \App\Country::create(['iso' => 'TD', 'name' => 'CHAD', 'nicename' => 'Chad', 'iso3' => 'TCD', 'numcode' => 148, 'phonecode' => 235]);
     \App\Country::create(['iso' => 'CL', 'name' => 'CHILE', 'nicename' => 'Chile', 'iso3' => 'CHL', 'numcode' => 152, 'phonecode' => 56]);
     \App\Country::create(['iso' => 'CN', 'name' => 'CHINA', 'nicename' => 'China', 'iso3' => 'CHN', 'numcode' => 156, 'phonecode' => 86]);
     \App\Country::create(['iso' => 'CX', 'name' => 'CHRISTMAS ISLAND', 'nicename' => 'Christmas Island', 'phonecode' => 61]);
     \App\Country::create(['iso' => 'CC', 'name' => 'COCOS (KEELING) ISLANDS', 'nicename' => 'Cocos (Keeling) Islands', 'phonecode' => 672]);
     \App\Country::create(['iso' => 'CO', 'name' => 'COLOMBIA', 'nicename' => 'Colombia', 'iso3' => 'COL', 'numcode' => 170, 'phonecode' => 57]);
     \App\Country::create(['iso' => 'KM', 'name' => 'COMOROS', 'nicename' => 'Comoros', 'iso3' => 'COM', 'numcode' => 174, 'phonecode' => 269]);
     \App\Country::create(['iso' => 'CG', 'name' => 'CONGO', 'nicename' => 'Congo', 'iso3' => 'COG', 'numcode' => 178, 'phonecode' => 242]);
     \App\Country::create(['iso' => 'CD', 'name' => 'CONGO', 'nicename' => 'Congo', 'iso3' => 'COD', 'numcode' => 180, 'phonecode' => 242]);
     \App\Country::create(['iso' => 'CK', 'name' => 'COOK ISLANDS', 'nicename' => 'Cook Islands', 'iso3' => 'COK', 'numcode' => 184, 'phonecode' => 682]);
     \App\Country::create(['iso' => 'CR', 'name' => 'COSTA RICA', 'nicename' => 'Costa Rica', 'iso3' => 'CRI', 'numcode' => 188, 'phonecode' => 506]);
     \App\Country::create(['iso' => 'CI', 'name' => 'COTE D IVOIRE', 'nicename' => 'Cote D Ivoire', 'iso3' => 'CIV', 'numcode' => 384, 'phonecode' => 225]);
     \App\Country::create(['iso' => 'HR', 'name' => 'CROATIA', 'nicename' => 'Croatia', 'iso3' => 'HRV', 'numcode' => 191, 'phonecode' => 385]);
     \App\Country::create(['iso' => 'CU', 'name' => 'CUBA', 'nicename' => 'Cuba', 'iso3' => 'CUB', 'numcode' => 192, 'phonecode' => 53]);
     \App\Country::create(['iso' => 'CY', 'name' => 'CYPRUS', 'nicename' => 'Cyprus', 'iso3' => 'CYP', 'numcode' => 196, 'phonecode' => 357]);
     \App\Country::create(['iso' => 'CZ', 'name' => 'CZECH REPUBLIC', 'nicename' => 'Czech Republic', 'iso3' => 'CZE', 'numcode' => 203, 'phonecode' => 420]);
     \App\Country::create(['iso' => 'DK', 'name' => 'DENMARK', 'nicename' => 'Denmark', 'iso3' => 'DNK', 'numcode' => 208, 'phonecode' => 45]);
     \App\Country::create(['iso' => 'DJ', 'name' => 'DJIBOUTI', 'nicename' => 'Djibouti', 'iso3' => 'DJI', 'numcode' => 262, 'phonecode' => 253]);
     \App\Country::create(['iso' => 'DM', 'name' => 'DOMINICA', 'nicename' => 'Dominica', 'iso3' => 'DMA', 'numcode' => 212, 'phonecode' => 1767]);
     \App\Country::create(['iso' => 'DO', 'name' => 'DOMINICAN REPUBLIC', 'nicename' => 'Dominican Republic', 'iso3' => 'DOM', 'numcode' => 214, 'phonecode' => 1809]);
     \App\Country::create(['iso' => 'EC', 'name' => 'ECUADOR', 'nicename' => 'Ecuador', 'iso3' => 'ECU', 'numcode' => 218, 'phonecode' => 593]);
     \App\Country::create(['iso' => 'EG', 'name' => 'EGYPT', 'nicename' => 'Egypt', 'iso3' => 'EGY', 'numcode' => 818, 'phonecode' => 20]);
     \App\Country::create(['iso' => 'SV', 'name' => 'EL SALVADOR', 'nicename' => 'El Salvador', 'iso3' => 'SLV', 'numcode' => 222, 'phonecode' => 503]);
     \App\Country::create(['iso' => 'GQ', 'name' => 'EQUATORIAL GUINEA', 'nicename' => 'Equatorial Guinea', 'iso3' => 'GNQ', 'numcode' => 226, 'phonecode' => 240]);
     \App\Country::create(['iso' => 'ER', 'name' => 'ERITREA', 'nicename' => 'Eritrea', 'iso3' => 'ERI', 'numcode' => 232, 'phonecode' => 291]);
     \App\Country::create(['iso' => 'EE', 'name' => 'ESTONIA', 'nicename' => 'Estonia', 'iso3' => 'EST', 'numcode' => 233, 'phonecode' => 372]);
     \App\Country::create(['iso' => 'ET', 'name' => 'ETHIOPIA', 'nicename' => 'Ethiopia', 'iso3' => 'ETH', 'numcode' => 231, 'phonecode' => 251]);
     \App\Country::create(['iso' => 'FK', 'name' => 'FALKLAND ISLANDS (MALVINAS)', 'nicename' => 'Falkland Islands (Malvinas)', 'iso3' => 'FLK', 'numcode' => 238, 'phonecode' => 500]);
     \App\Country::create(['iso' => 'FO', 'name' => 'FAROE ISLANDS', 'nicename' => 'Faroe Islands', 'iso3' => 'FRO', 'numcode' => 234, 'phonecode' => 298]);
     \App\Country::create(['iso' => 'FJ', 'name' => 'FIJI', 'nicename' => 'Fiji', 'iso3' => 'FJI', 'numcode' => 242, 'phonecode' => 679]);
     \App\Country::create(['iso' => 'FI', 'name' => 'FINLAND', 'nicename' => 'Finland', 'iso3' => 'FIN', 'numcode' => 246, 'phonecode' => 358]);
     \App\Country::create(['iso' => 'FR', 'name' => 'FRANCE', 'nicename' => 'France', 'iso3' => 'FRA', 'numcode' => 250, 'phonecode' => 33]);
     \App\Country::create(['iso' => 'GF', 'name' => 'FRENCH GUIANA', 'nicename' => 'French Guiana', 'iso3' => 'GUF', 'numcode' => 254, 'phonecode' => 594]);
     \App\Country::create(['iso' => 'PF', 'name' => 'FRENCH POLYNESIA', 'nicename' => 'French Polynesia', 'iso3' => 'PYF', 'numcode' => 258, 'phonecode' => 689]);
     \App\Country::create(['iso' => 'TF', 'name' => 'FRENCH SOUTHERN TERRITORIES', 'nicename' => 'French Southern Territories', 'phonecode' => 0]);
     \App\Country::create(['iso' => 'GA', 'name' => 'GABON', 'nicename' => 'Gabon', 'iso3' => 'GAB', 'numcode' => 266, 'phonecode' => 241]);
     \App\Country::create(['iso' => 'GM', 'name' => 'GAMBIA', 'nicename' => 'Gambia', 'iso3' => 'GMB', 'numcode' => 270, 'phonecode' => 220]);
     \App\Country::create(['iso' => 'GE', 'name' => 'GEORGIA', 'nicename' => 'Georgia', 'iso3' => 'GEO', 'numcode' => 268, 'phonecode' => 995]);
     \App\Country::create(['iso' => 'DE', 'name' => 'GERMANY', 'nicename' => 'Germany', 'iso3' => 'DEU', 'numcode' => 276, 'phonecode' => 49]);
     \App\Country::create(['iso' => 'GH', 'name' => 'GHANA', 'nicename' => 'Ghana', 'iso3' => 'GHA', 'numcode' => 288, 'phonecode' => 233]);
     \App\Country::create(['iso' => 'GI', 'name' => 'GIBRALTAR', 'nicename' => 'Gibraltar', 'iso3' => 'GIB', 'numcode' => 292, 'phonecode' => 350]);
     \App\Country::create(['iso' => 'GR', 'name' => 'GREECE', 'nicename' => 'Greece', 'iso3' => 'GRC', 'numcode' => 300, 'phonecode' => 30]);
     \App\Country::create(['iso' => 'GL', 'name' => 'GREENLAND', 'nicename' => 'Greenland', 'iso3' => 'GRL', 'numcode' => 304, 'phonecode' => 299]);
     \App\Country::create(['iso' => 'GD', 'name' => 'GRENADA', 'nicename' => 'Grenada', 'iso3' => 'GRD', 'numcode' => 308, 'phonecode' => 1473]);
     \App\Country::create(['iso' => 'GP', 'name' => 'GUADELOUPE', 'nicename' => 'Guadeloupe', 'iso3' => 'GLP', 'numcode' => 312, 'phonecode' => 590]);
     \App\Country::create(['iso' => 'GU', 'name' => 'GUAM', 'nicename' => 'Guam', 'iso3' => 'GUM', 'numcode' => 316, 'phonecode' => 1671]);
     \App\Country::create(['iso' => 'GT', 'name' => 'GUATEMALA', 'nicename' => 'Guatemala', 'iso3' => 'GTM', 'numcode' => 320, 'phonecode' => 502]);
     \App\Country::create(['iso' => 'GN', 'name' => 'GUINEA', 'nicename' => 'Guinea', 'iso3' => 'GIN', 'numcode' => 324, 'phonecode' => 224]);
     \App\Country::create(['iso' => 'GW', 'name' => 'GUINEA-BISSAU', 'nicename' => 'Guinea-Bissau', 'iso3' => 'GNB', 'numcode' => 624, 'phonecode' => 245]);
     \App\Country::create(['iso' => 'GY', 'name' => 'GUYANA', 'nicename' => 'Guyana', 'iso3' => 'GUY', 'numcode' => 328, 'phonecode' => 592]);
     \App\Country::create(['iso' => 'HT', 'name' => 'HAITI', 'nicename' => 'Haiti', 'iso3' => 'HTI', 'numcode' => 332, 'phonecode' => 509]);
//.........这里部分代码省略.........
开发者ID:candrasetiadi,项目名称:nvjvnjsdnnvdvdw,代码行数:101,代码来源:CountriesTableSeeder.php

示例13: run

 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('countries')->delete();
     Country::create(['numeric_code' => "020", 'name' => "Andorra", 'alpha2' => "AD", 'alpha3' => "AND"]);
     Country::create(['numeric_code' => "784", 'name' => "United Arab Emirates", 'alpha2' => "AE", 'alpha3' => "ARE"]);
     Country::create(['numeric_code' => "004", 'name' => "Afghanistan", 'alpha2' => "AF", 'alpha3' => "AFG"]);
     Country::create(['numeric_code' => "028", 'name' => "Antigua and Barbuda", 'alpha2' => "AG", 'alpha3' => "ATG"]);
     Country::create(['numeric_code' => "660", 'name' => "Anguilla", 'alpha2' => "AI", 'alpha3' => "AIA"]);
     Country::create(['numeric_code' => "008", 'name' => "Albania", 'alpha2' => "AL", 'alpha3' => "ALB"]);
     Country::create(['numeric_code' => "051", 'name' => "Armenia", 'alpha2' => "AM", 'alpha3' => "ARM"]);
     Country::create(['numeric_code' => "530", 'name' => "Nederlandse Antillen", 'alpha2' => "AN", 'alpha3' => "ANT"]);
     Country::create(['numeric_code' => "024", 'name' => "Angola", 'alpha2' => "AO", 'alpha3' => "AGO"]);
     Country::create(['numeric_code' => "010", 'name' => "Antarctica", 'alpha2' => "AQ", 'alpha3' => "ATA"]);
     Country::create(['numeric_code' => "032", 'name' => "Argentina", 'alpha2' => "AR", 'alpha3' => "ARG", 'continent' => "latam"]);
     Country::create(['numeric_code' => "016", 'name' => "American Samoa", 'alpha2' => "AS", 'alpha3' => "ASM"]);
     Country::create(['numeric_code' => "040", 'name' => "Austria", 'alpha2' => "AT", 'alpha3' => "AUT"]);
     Country::create(['numeric_code' => "036", 'name' => "Australia", 'alpha2' => "AU", 'alpha3' => "AUS"]);
     Country::create(['numeric_code' => "533", 'name' => "Aruba", 'alpha2' => "AW", 'alpha3' => "ABW"]);
     Country::create(['numeric_code' => "248", 'name' => "Åland Islands", 'alpha2' => "AX", 'alpha3' => "ALA"]);
     Country::create(['numeric_code' => "031", 'name' => "Azerbaijan", 'alpha2' => "AZ", 'alpha3' => "AZE"]);
     Country::create(['numeric_code' => "070", 'name' => "Bosnia and Herzegovina", 'alpha2' => "BA", 'alpha3' => "BIH"]);
     Country::create(['numeric_code' => "052", 'name' => "Barbados", 'alpha2' => "BB", 'alpha3' => "BRB"]);
     Country::create(['numeric_code' => "050", 'name' => "Bangladesh", 'alpha2' => "BD", 'alpha3' => "BGD"]);
     Country::create(['numeric_code' => "056", 'name' => "Belgium", 'alpha2' => "BE", 'alpha3' => "BEL"]);
     Country::create(['numeric_code' => "854", 'name' => "Burkina Faso", 'alpha2' => "BF", 'alpha3' => "BFA"]);
     Country::create(['numeric_code' => "100", 'name' => "Bulgaria", 'alpha2' => "BG", 'alpha3' => "BGR"]);
     Country::create(['numeric_code' => "048", 'name' => "Bahrain", 'alpha2' => "BH", 'alpha3' => "BHR"]);
     Country::create(['numeric_code' => "108", 'name' => "Burundi", 'alpha2' => "BI", 'alpha3' => "BDI"]);
     Country::create(['numeric_code' => "204", 'name' => "Benin", 'alpha2' => "BJ", 'alpha3' => "BEN"]);
     Country::create(['numeric_code' => "652", 'name' => "Saint Barth&eacute;lemy", 'alpha2' => "BL", 'alpha3' => "BLM"]);
     Country::create(['numeric_code' => "060", 'name' => "Bermudas", 'alpha2' => "BM", 'alpha3' => "BMU"]);
     Country::create(['numeric_code' => "096", 'name' => "Brunei Darussalam", 'alpha2' => "BN", 'alpha3' => "BRN"]);
     Country::create(['numeric_code' => "068", 'name' => "Bolivia", 'alpha2' => "BO", 'alpha3' => "BOL", 'continent' => "latam"]);
     Country::create(['numeric_code' => "535", 'name' => "Bonaire, Sint Eustatius and Saba", 'alpha2' => "BQ", 'alpha3' => "BES"]);
     Country::create(['numeric_code' => "076", 'name' => "Brazil", 'alpha2' => "BR", 'alpha3' => "BRA", 'continent' => "latam"]);
     Country::create(['numeric_code' => "044", 'name' => "Bahamas", 'alpha2' => "BS", 'alpha3' => "BHS"]);
     Country::create(['numeric_code' => "064", 'name' => "Bhutan", 'alpha2' => "BT", 'alpha3' => "BTN"]);
     Country::create(['numeric_code' => "074", 'name' => "Bouvet Island", 'alpha2' => "BV", 'alpha3' => "BVT"]);
     Country::create(['numeric_code' => "072", 'name' => "Botswana", 'alpha2' => "BW", 'alpha3' => "BWA"]);
     Country::create(['numeric_code' => "112", 'name' => "Belarus", 'alpha2' => "BY", 'alpha3' => "BLR"]);
     Country::create(['numeric_code' => "084", 'name' => "Belize", 'alpha2' => "BZ", 'alpha3' => "BLZ"]);
     Country::create(['numeric_code' => "124", 'name' => "Canada", 'alpha2' => "CA", 'alpha3' => "CAN"]);
     Country::create(['numeric_code' => "166", 'name' => "Cocos Islands", 'alpha2' => "CC", 'alpha3' => "CCK"]);
     Country::create(['numeric_code' => "180", 'name' => "The Democratic Republic of the Congo", 'alpha2' => "CD", 'alpha3' => "COD"]);
     Country::create(['numeric_code' => "140", 'name' => "Central African Republic", 'alpha2' => "CF", 'alpha3' => "CAF"]);
     Country::create(['numeric_code' => "178", 'name' => "Congo", 'alpha2' => "CG", 'alpha3' => "COG"]);
     Country::create(['numeric_code' => "756", 'name' => "Switzerland", 'alpha2' => "CH", 'alpha3' => "CHE"]);
     Country::create(['numeric_code' => "384", 'name' => "Côte d'Ivoire", 'alpha2' => "CI", 'alpha3' => "CIV"]);
     Country::create(['numeric_code' => "184", 'name' => "Cook Islands", 'alpha2' => "CK", 'alpha3' => "COK"]);
     Country::create(['numeric_code' => "152", 'name' => "Chile", 'alpha2' => "CL", 'alpha3' => "CHL", 'continent' => "latam"]);
     Country::create(['numeric_code' => "120", 'name' => "Cameroon", 'alpha2' => "CM", 'alpha3' => "CMR"]);
     Country::create(['numeric_code' => "156", 'name' => "China", 'alpha2' => "CN", 'alpha3' => "CHN"]);
     Country::create(['numeric_code' => "170", 'name' => "Colombia", 'alpha2' => "CO", 'alpha3' => "COL", 'continent' => "latam"]);
     Country::create(['numeric_code' => "188", 'name' => "Costa Rica", 'alpha2' => "CR", 'alpha3' => "CRI", 'continent' => "latam"]);
     Country::create(['numeric_code' => "200", 'name' => "Czechoslovakia", 'alpha2' => "CS", 'alpha3' => "CSK"]);
     Country::create(['numeric_code' => "128", 'name' => "Canton and Enderbury Islands", 'alpha2' => "CT", 'alpha3' => "CTE"]);
     Country::create(['numeric_code' => "192", 'name' => "Cuba", 'alpha2' => "CU", 'alpha3' => "CUB", 'continent' => "latam"]);
     Country::create(['numeric_code' => "132", 'name' => "Cabo Verde", 'alpha2' => "CV", 'alpha3' => "CPV"]);
     Country::create(['numeric_code' => "531", 'name' => "Curaçao", 'alpha2' => "CW", 'alpha3' => "CXR"]);
     Country::create(['numeric_code' => "162", 'name' => "Christmas Island", 'alpha2' => "CX", 'alpha3' => "CXR"]);
     Country::create(['numeric_code' => "196", 'name' => "Cyprus", 'alpha2' => "CY", 'alpha3' => "CYP"]);
     Country::create(['numeric_code' => "203", 'name' => "Czech Republic", 'alpha2' => "CZ", 'alpha3' => "CZE"]);
     Country::create(['numeric_code' => "276", 'name' => "Germany", 'alpha2' => "DE", 'alpha3' => "DEU"]);
     Country::create(['numeric_code' => "262", 'name' => "Djibouti", 'alpha2' => "DJ", 'alpha3' => "DJI"]);
     Country::create(['numeric_code' => "208", 'name' => "Denmark", 'alpha2' => "DK", 'alpha3' => "DNK"]);
     Country::create(['numeric_code' => "212", 'name' => "Dominica", 'alpha2' => "DM", 'alpha3' => "DMA"]);
     Country::create(['numeric_code' => "214", 'name' => "Dominican Republic", 'alpha2' => "DO", 'alpha3' => "DOM", 'continent' => "latam"]);
     Country::create(['numeric_code' => "012", 'name' => "Algeria", 'alpha2' => "DZ", 'alpha3' => "DZA"]);
     Country::create(['numeric_code' => "218", 'name' => "Ecuador", 'alpha2' => "EC", 'alpha3' => "ECU", 'continent' => "latam"]);
     Country::create(['numeric_code' => "233", 'name' => "Estonia", 'alpha2' => "EE", 'alpha3' => "EST"]);
     Country::create(['numeric_code' => "818", 'name' => "Egypt", 'alpha2' => "EG", 'alpha3' => "EGY"]);
     Country::create(['numeric_code' => "732", 'name' => "Western Sahara", 'alpha2' => "EH", 'alpha3' => "ESH"]);
     Country::create(['numeric_code' => "232", 'name' => "Eritrea", 'alpha2' => "ER", 'alpha3' => "ERI"]);
     Country::create(['numeric_code' => "724", 'name' => "Spain", 'alpha2' => "ES", 'alpha3' => "ESP"]);
     Country::create(['numeric_code' => "231", 'name' => "Ethiopia", 'alpha2' => "ET", 'alpha3' => "ETH"]);
     Country::create(['numeric_code' => "246", 'name' => "Finland", 'alpha2' => "FI", 'alpha3' => "FIN"]);
     Country::create(['numeric_code' => "242", 'name' => "Fiji", 'alpha2' => "FJ", 'alpha3' => "FJI"]);
     Country::create(['numeric_code' => "238", 'name' => "Falkland Islands [Malvinas]", 'alpha2' => "FK", 'alpha3' => "KLK"]);
     Country::create(['numeric_code' => "583", 'name' => "Micronesia", 'alpha2' => "FM", 'alpha3' => "FSM"]);
     Country::create(['numeric_code' => "234", 'name' => "Faroe Island", 'alpha2' => "FO", 'alpha3' => "FRO"]);
     Country::create(['numeric_code' => "250", 'name' => "France", 'alpha2' => "FR", 'alpha3' => "FRA"]);
     Country::create(['numeric_code' => "266", 'name' => "Gabon", 'alpha2' => "GA", 'alpha3' => "GAB"]);
     Country::create(['numeric_code' => "826", 'name' => "United Kingdom of Great Britain and Northern Ireland", 'alpha2' => "GB", 'alpha3' => "GBR"]);
     Country::create(['numeric_code' => "308", 'name' => "Grenada", 'alpha2' => "GD", 'alpha3' => "GRD", 'continent' => "latam"]);
     Country::create(['numeric_code' => "268", 'name' => "Georgia", 'alpha2' => "GE", 'alpha3' => "GEO"]);
     Country::create(['numeric_code' => "254", 'name' => "French Guiana", 'alpha2' => "GF", 'alpha3' => "GUF", 'continent' => "latam"]);
     Country::create(['numeric_code' => "831", 'name' => "Guernsey", 'alpha2' => "GG", 'alpha3' => "GGY"]);
     Country::create(['numeric_code' => "288", 'name' => "Ghana", 'alpha2' => "GH", 'alpha3' => "GHA"]);
     Country::create(['numeric_code' => "292", 'name' => "Gibraltar", 'alpha2' => "GI", 'alpha3' => "GIB"]);
     Country::create(['numeric_code' => "304", 'name' => "Greenland", 'alpha2' => "GL", 'alpha3' => "GRL"]);
     Country::create(['numeric_code' => "270", 'name' => "Gambia", 'alpha2' => "GM", 'alpha3' => "GMB"]);
     Country::create(['numeric_code' => "324", 'name' => "Guinea", 'alpha2' => "GN", 'alpha3' => "GIN"]);
     Country::create(['numeric_code' => "312", 'name' => "Guadeloupe", 'alpha2' => "GP", 'alpha3' => "GLP"]);
     Country::create(['numeric_code' => "226", 'name' => "Equatorial Guinea", 'alpha2' => "GQ", 'alpha3' => "GNQ"]);
     Country::create(['numeric_code' => "300", 'name' => "Greece", 'alpha2' => "GR", 'alpha3' => "GRC"]);
//.........这里部分代码省略.........
开发者ID:jnaxo,项目名称:BankCodes,代码行数:101,代码来源:CountryTableSeeder.php


注:本文中的app\Country::create方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。