ferdirn/laravel-id-provinces
Laravel package that adds Indonesian provinces data to your app. Provides migration and seeder to create and populate a provinces table with province name, country code, capital, and area (km²). Includes service provider and facade.
provinces table, which aligns with Laravel’s Eloquent ORM. This avoids API calls or external dependencies, reducing latency and complexity.dev-master suggests unreleased code with potential bugs or API changes. Lack of semantic versioning increases risk.required|exists:provinces,name)?composer.json (prefer ^1.0 if stable version exists; otherwise, pin dev-master).ProvincesServiceProvider and Provinces facade in config/app.php.php artisan vendor:publish --provider="Ferdirn\Provinces\ProvincesServiceProvider").php artisan migrate to seed the provinces table.Provinces::all()).Provinces::where('name', 'DKI Jakarta')->first().Provinces::orderBy('area', 'desc')).laravel-id-countries).select dropdowns, validation).refreshData() method to pull from an API).Provinces::all() if frequently accessed (e.g., in a middleware).| Risk | Impact | Mitigation |
|---|---|---|
| Data staleness | Incorrect province names/capitals | Manual updates or API integration. |
| Laravel version mismatch | Package breaks on upgrade | Pin to a stable Laravel version. |
| No future updates | Abandoned package | Fork and maintain locally. |
| Duplicate entries | Data integrity issues | Add unique constraints in migrations. |
How can I help you explore Laravel packages today?