承接 soap/thailand-provinces 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

soap/thailand-provinces

Composer 安装命令:

composer require soap/thailand-provinces

包简介

Thailand provinces database as Laravel package

README 文档

README

Thailand provinces data for Laravel

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Thailand provinces database

This database was taken from https://github.com/parsilver/thailand-provinces-php.

Installation

Add soap/thailand-provinces to composer.json.

"soap/thailand-countries": "dev-master"

Run composer update to pull down the latest version of Provinces List.

Edit app/config/app.php and add the provider and alias

'providers' => [
    'Soap\ThProvinces\ProvincesServiceProvider',
]

Now add the alias.

'aliases' => [
    'ThProvinces' => 'Soap\ThProvinces\Provinces\Facades\Provinces',
]

Model (Data)

You can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name provinces suits you, leave it. Otherwise run the following command

$ php artisan vendor:publish --tag=thprovinces

Next generate the migration file:

$ php artisan thprovinces:migration

It will generate the <timestamp>_create_provinces_table.php migration and the ProvincesSeeder.php seeder. To make sure the data is seeded insert the following code in the seeds/DatabaseSeeder.php

//Seed the provinces
$this->call('ProvincesSeeder');
$this->command->info('Seeded Thailand provinces!'); 

You can also run php artisan db:seed --class=ProvincesSeeder instead of adding those commands in seeds/DatabaseSeeder.php

You may now run it with the artisan migrate command:

$ php artisan migrate --seed

After running this command the filled provinces table will be available for usage in your application.

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固