Best laravel framework open-source packages.

Prpcmblmts

Philippines region, province, cities/municipalities and barangays Laravel migration and table seeder.
Updated 8 months ago

PRPCMBLMTS

Philippines region, province, cities/municipalities and barangays Laravel migration and table seeder.

MIT License

Requirements

  • Laravel 5.5 to 8.x

What's inside

  • [x] Regions
  • [x] Provinces
  • [x] Cities/Municipalities
  • [x] Barangays

Installation

  1. Install using Composer
composer require woenel/prpcmblmts
  1. Publish migration and seed files
php artisan vendor:publish --provider="Woenel\Prpcmblmts\ServiceProvider"
  1. Run the following migrate artisan command
php artisan migrate --path="database/migrations/prpcmblmts"
  1. Dump autoload using Composer
composer dump-autoload
  1. Lastly, seed the data using the following seed artisan commands below
php artisan db:seed --class=PhilippineRegionsTableSeeder
php artisan db:seed --class=PhilippineProvincesTableSeeder
php artisan db:seed --class=PhilippineCitiesTableSeeder
php artisan db:seed --class=PhilippineBarangaysTableSeeder

Credit

Philippine Standard Geographic Code (PSGC)