久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      快看!這個Laravel World擴展支持中文!

      下面由Laravel教程欄目帶大家推薦介紹關于Laravel World的擴展,希望對大家有所幫助!

      Laravel World —— 自帶數(shù)據(jù)庫的國家以及城市數(shù)據(jù)(支持中文)

      Laravel World (https://github.com/nnjeim/world)是一個提供國家、州、城市、貨幣和時區(qū)列表的包。 World 通過數(shù)據(jù)庫將數(shù)據(jù)與 Eloquent 模型集成,并提供 Facades、helper 和 API 路由:

      use NnjeimWorldWorld;  $action =  World::countries(); /* {     "success": true,     "message": "countries",     "data": [         {             "id": 1,             "name": "Afghanistan"         },         {             "id": 2,             "name": "?land Islands"         },       ...     ], } */

      這是 readme 中的另一個示例,使用過濾器來獲取國家/地區(qū)和該國家/地區(qū)內(nèi)的城市:

      // 獲取國家和城市 $action =  World::countries([     'fields' => 'states,cities',     'filters' => [         'iso2' => 'FR',     ] ]); /* {     "success": true,     "message": "countries",     "data": [         "id": 77,         "name": "France",         "states": [              {                 "id": 1271,                 "name": "Alo"             },             {                 "id": 1272,                 "name": "Alsace"             },         ],         "cities": [             {                 "id": 25148,                 "name": "Abondance"             },             {                 "id": 25149,                 "name": "Abrest"             },             ...         ]     ], } */

      此包還支持本地化(請參閱 readme 以了解支持的語言環(huán)境),為所有數(shù)據(jù)提供 API,并具有輔助函數(shù),如格式化電話號碼等

      您可以了解有關此軟件包的

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號