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


PHP Country::insert方法代码示例

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


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

示例1: run

 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     Country::insert([['name' => 'Afghanistan'], ['name' => 'Albania'], ['name' => 'Algeria'], ['name' => 'American Samoa'], ['name' => 'Andorra'], ['name' => 'Angola'], ['name' => 'Anguilla'], ['name' => 'Antarctica'], ['name' => 'Antigua and/or Barbuda'], ['name' => 'Argentina'], ['name' => 'Armenia'], ['name' => 'Aruba'], ['name' => 'Australia'], ['name' => 'Austria'], ['name' => 'Azerbaijan'], ['name' => 'Bahamas'], ['name' => 'Bahrain'], ['name' => 'Bangladesh'], ['name' => 'Barbados'], ['name' => 'Belarus'], ['name' => 'Belgium'], ['name' => 'Belize'], ['name' => 'Benin'], ['name' => 'Bermuda'], ['name' => 'Bhutan'], ['name' => 'Bolivia'], ['name' => 'Bosnia and Herzegovina'], ['name' => 'Botswana'], ['name' => 'Bouvet Island'], ['name' => 'Brazil'], ['name' => 'British lndian Ocean Territory'], ['name' => 'Brunei Darussalam'], ['name' => 'Bulgaria'], ['name' => 'Burkina Faso'], ['name' => 'Burundi'], ['name' => 'Cambodia'], ['name' => 'Cameroon'], ['name' => 'Canada'], ['name' => 'Cape Verde'], ['name' => 'Cayman Islands'], ['name' => 'Central African Republic'], ['name' => 'Chad'], ['name' => 'Chile'], ['name' => 'China'], ['name' => 'Christmas Island'], ['name' => 'Cocos (Keeling) Islands'], ['name' => 'Colombia'], ['name' => 'Comoros'], ['name' => 'Congo'], ['name' => 'Cook Islands'], ['name' => 'Costa Rica'], ['name' => 'Croatia (Hrvatska)'], ['name' => 'Cuba'], ['name' => 'Cyprus'], ['name' => 'Czech Republic'], ['name' => 'Denmark'], ['name' => 'Djibouti'], ['name' => 'Dominica'], ['name' => 'Dominican Republic'], ['name' => 'East Timor'], ['name' => 'Ecuador'], ['name' => 'Egypt'], ['name' => 'El Salvador'], ['name' => 'Equatorial Guinea'], ['name' => 'Eritrea'], ['name' => 'Estonia'], ['name' => 'Ethiopia'], ['name' => 'Falkland Islands (Malvinas)'], ['name' => 'Faroe Islands'], ['name' => 'Fiji'], ['name' => 'Finland'], ['name' => 'France'], ['name' => 'France, Metropolitan'], ['name' => 'French Guiana'], ['name' => 'French Polynesia'], ['name' => 'French Southern Territories'], ['name' => 'Gabon'], ['name' => 'Gambia'], ['name' => 'Georgia'], ['name' => 'Germany'], ['name' => 'Ghana'], ['name' => 'Gibraltar'], ['name' => 'Greece'], ['name' => 'Greenland'], ['name' => 'Grenada'], ['name' => 'Guadeloupe'], ['name' => 'Guam'], ['name' => 'Guatemala'], ['name' => 'Guinea'], ['name' => 'Guinea-Bissau'], ['name' => 'Guyana'], ['name' => 'Haiti'], ['name' => 'Heard and Mc Donald Islands'], ['name' => 'Honduras'], ['name' => 'Hong Kong'], ['name' => 'Hungary'], ['name' => 'Iceland'], ['name' => 'India'], ['name' => 'Indonesia'], ['name' => 'Iran (Islamic Republic of)'], ['name' => 'Iraq'], ['name' => 'Ireland'], ['name' => 'Israel'], ['name' => 'Italy'], ['name' => 'Ivory Coast'], ['name' => 'Jamaica'], ['name' => 'Japan'], ['name' => 'Jordan'], ['name' => 'Kazakhstan'], ['name' => 'Kenya'], ['name' => 'Kiribati'], ['name' => 'Korea, Democratic People\'s Republic of'], ['name' => 'Korea, Republic of'], ['name' => 'Kosovo'], ['name' => 'Kuwait'], ['name' => 'Kyrgyzstan'], ['name' => 'Lao People\'s Democratic Republic'], ['name' => 'Latvia'], ['name' => 'Lebanon'], ['name' => 'Lesotho'], ['name' => 'Liberia'], ['name' => 'Libyan Arab Jamahiriya'], ['name' => 'Liechtenstein'], ['name' => 'Lithuania'], ['name' => 'Luxembourg'], ['name' => 'Macau'], ['name' => 'Macedonia'], ['name' => 'Madagascar'], ['name' => 'Malawi'], ['name' => 'Malaysia'], ['name' => 'Maldives'], ['name' => 'Mali'], ['name' => 'Malta'], ['name' => 'Marshall Islands'], ['name' => 'Martinique'], ['name' => 'Mauritania'], ['name' => 'Mauritius'], ['name' => 'Mayotte'], ['name' => 'Mexico'], ['name' => 'Micronesia, Federated States of'], ['name' => 'Moldova, Republic of'], ['name' => 'Monaco'], ['name' => 'Mongolia'], ['name' => 'Montenegro'], ['name' => 'Montserrat'], ['name' => 'Morocco'], ['name' => 'Mozambique'], ['name' => 'Myanmar'], ['name' => 'Namibia'], ['name' => 'Nauru'], ['name' => 'Nepal'], ['name' => 'Netherlands'], ['name' => 'Netherlands Antilles'], ['name' => 'New Caledonia'], ['name' => 'New Zealand'], ['name' => 'Nicaragua'], ['name' => 'Niger'], ['name' => 'Nigeria'], ['name' => 'Niue'], ['name' => 'Norfork Island'], ['name' => 'Northern Mariana Islands'], ['name' => 'Norway'], ['name' => 'Oman'], ['name' => 'Pakistan'], ['name' => 'Palau'], ['name' => 'Panama'], ['name' => 'Papua New Guinea'], ['name' => 'Paraguay'], ['name' => 'Peru'], ['name' => 'Philippines'], ['name' => 'Pitcairn'], ['name' => 'Poland'], ['name' => 'Portugal'], ['name' => 'Puerto Rico'], ['name' => 'Qatar'], ['name' => 'Reunion'], ['name' => 'Romania'], ['name' => 'Russian Federation'], ['name' => 'Rwanda'], ['name' => 'Saint Kitts and Nevis'], ['name' => 'Saint Lucia'], ['name' => 'Saint Vincent and the Grenadines'], ['name' => 'Samoa'], ['name' => 'San Marino'], ['name' => 'Sao Tome and Principe'], ['name' => 'Saudi Arabia'], ['name' => 'Senegal'], ['name' => 'Serbia'], ['name' => 'Seychelles'], ['name' => 'Sierra Leone'], ['name' => 'Singapore'], ['name' => 'Slovakia'], ['name' => 'Slovenia'], ['name' => 'Solomon Islands'], ['name' => 'Somalia'], ['name' => 'South Africa'], ['name' => 'South Georgia South Sandwich Islands'], ['name' => 'Spain'], ['name' => 'Sri Lanka'], ['name' => 'St. Helena'], ['name' => 'St. Pierre and Miquelon'], ['name' => 'Sudan'], ['name' => 'Suriname'], ['name' => 'Svalbarn and Jan Mayen Islands'], ['name' => 'Swaziland'], ['name' => 'Sweden'], ['name' => 'Switzerland'], ['name' => 'Syrian Arab Republic'], ['name' => 'Taiwan'], ['name' => 'Tajikistan'], ['name' => 'Tanzania, United Republic of'], ['name' => 'Thailand'], ['name' => 'Togo'], ['name' => 'Tokelau'], ['name' => 'Tonga'], ['name' => 'Trinidad and Tobago'], ['name' => 'Tunisia'], ['name' => 'Turkey'], ['name' => 'Turkmenistan'], ['name' => 'Turks and Caicos Islands'], ['name' => 'Tuvalu'], ['name' => 'Uganda'], ['name' => 'Ukraine'], ['name' => 'United Arab Emirates'], ['name' => 'United Kingdom'], ['name' => 'United States'], ['name' => 'United States minor outlying islands'], ['name' => 'Uruguay'], ['name' => 'Uzbekistan'], ['name' => 'Vanuatu'], ['name' => 'Vatican City State'], ['name' => 'Venezuela'], ['name' => 'Vietnam'], ['name' => 'Virgin Islands (British)'], ['name' => 'Virgin Islands (U.S.)'], ['name' => 'Wallis and Futuna Islands'], ['name' => 'Western Sahara'], ['name' => 'Yemen'], ['name' => 'Yugoslavia'], ['name' => 'Zaire'], ['name' => 'Zambia'], ['name' => 'Zimbabwe']]);
 }
开发者ID:jonasvr,项目名称:auction,代码行数:9,代码来源:CountryTableSeeder.php


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