2017 © Pedro Peláez
 

laravel-package laravel-id-provinces

Laravel ID Provinces is a package for Laravel to supply all provinces data to table provinces including province name, country code, capital, and area in square km. Start from data provinces in Indonesia.

image

ferdirn/laravel-id-provinces

Laravel ID Provinces is a package for Laravel to supply all provinces data to table provinces including province name, country code, capital, and area in square km. Start from data provinces in Indonesia.

  • Tuesday, November 18, 2014
  • by ferdirn
  • Repository
  • 1 Watchers
  • 2 Stars
  • 94 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Laravel ID Provinces

Total Downloads Latest Stable Version Latest Unstable Version, (*1)

Laravel ID Provinces is a package for Laravel to supply all provinces data in Indonesia to table provinces including province name, country code, capital, and area in square km. Start from data provinces in Indonesia., (*2)

If you need Laravel package to provide all Countries data for you, then you may want to install ferdirn/laravel-id-countries package., (*3)

Installation

Add ferdirn/laravel-id-provinces to composer.json., (*4)

"ferdirn/laravel-id-provinces": "dev-master"

or in console type command, (*5)

composer require ferdirn/laravel-id-provinces:dev-master

Run composer update to pull down the latest version of laravel packages., (*6)

Edit app/config/app.php file and add to providers, (*7)

'providers' => array(
    'Ferdirn\Provinces\ProvincesServiceProvider',
)

also add to 'aliases', (*8)

'aliases' => array(
    'Provinces' => 'Ferdirn\Provinces\ProvincesFacade',
)

Model

If you want to edit the configuration then publish the config. This is an optional step and unrecommended to do, it will show the table name and you do not need to alter it if you do not know what you are doing. The default table name is provinces, if it suits you, leave it. But if you know what you are doing, you can run the following command, (*9)

$ php artisan config:publish ferdirn/laravel-id-provinces

Then you need to generate the migration file. Run the following command:, (*10)

$ php artisan provinces:migration

This process will generate <timestamp>_create_provinces_table.php migration file and a ProvincesSeeder.php seed file., (*11)

Insert the following code in the seeds/DatabaseSeeder.php, (*12)

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

Finally, you can run the artisan migrate command with seed option to include the seed data:, (*13)

$ php artisan migrate --seed

Now you have a table 'provinces' with all provinces data inside the table. Congratulation!, (*14)

The Versions

18/11 2014

dev-master

9999999-dev https://github.com/ferdirn/laravel-id-provinces

Laravel ID Provinces is a package for Laravel to supply all provinces data to table provinces including province name, country code, capital, and area in square km. Start from data provinces in Indonesia.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel capital area provinces

17/11 2014

v2.0

2.0.0.0 https://github.com/ferdirn/laravel-id-provinces

Laravel ID Provinces is a package for Laravel to supply all provinces data in Indonesia to table provinces including province name, country code, capital, and area in square km.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel capital area provinces

11/11 2014

v1.2

1.2.0.0 https://github.com/ferdirn/laravel-id-provinces

Laravel ID Provinces is a package for Laravel to supply all provinces data in Indonesia to table provinces including province name, country code, capital, and area in square km.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel capital area provinces

11/11 2014

v1.0

1.0.0.0 https://github.com/ferdirn/laravel-id-provinces

Laravel ID Provinces is a package for Laravel to supply all provinces data in Indonesia to table provinces including province name, country code, capital, and area in km square.

  Sources   Download

MIT

The Requires

 

laravel capital area provinces