Philippines region, province, cities/municipalities and barangays Laravel migration and table seeder.
- Laravel 5.5 to 8.x
- Regions
- Provinces
- Cities/Municipalities
- Barangays
- Install using Composer
composer require woenel/prpcmblmts
- Publish migration and seed files
php artisan vendor:publish --provider="Woenel\Prpcmblmts\ServiceProvider"
- Run the following migrate artisan command
php artisan migrate --path="database/migrations/prpcmblmts"
- Dump autoload using Composer
composer dump-autoload
- 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