2017 © Pedro Peláez
 

laravel-package thailand-provinces

Thailand provinces database as Laravel package

image

soap/thailand-provinces

Thailand provinces database as Laravel package

  • Wednesday, December 21, 2016
  • by soap
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 8 % Grown

The README.md

Laravel Thailand Provinces

Thailand provinces data for Laravel, (*1)

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Thailand provinces database

This database was taken from https://github.com/parsilver/thailand-provinces-php., (*3)

Installation

Add soap/thailand-provinces to composer.json., (*4)

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

Run composer update to pull down the latest version of Provinces List., (*5)

Edit app/config/app.php and add the provider and alias, (*6)

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

Now add the alias., (*7)

'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, (*8)

$ php artisan vendor:publish --tag=thprovinces

Next generate the migration file:, (*9)

$ 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, (*10)

//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, (*11)

You may now run it with the artisan migrate command:, (*12)

$ php artisan migrate --seed

After running this command the filled provinces table will be available for usage in your application., (*13)

The Versions

21/12 2016

dev-develop

dev-develop

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

06/07 2016

dev-master

9999999-dev

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

16/06 2016

v0.8

0.8.0.0

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

16/06 2016

v0.7

0.7.0.0

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

16/06 2016

v0.6

0.6.0.0

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

15/06 2016

v0.5

0.5.0.0

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

15/06 2016

v0.4

0.4.0.0

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

15/06 2016

v0.3

0.3.0.0

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

15/06 2016

v0.2

0.2.0.0

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap

14/06 2016

v0.1

0.1.0.0

Thailand provinces database as Laravel package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Prasit Gebsaap