Division, District, Upazila and Union data of Bangladesh for Laravel application. One artisan command and you are all set.
| Laravel | Package |
|---|---|
| 5.5.x | 0.4.x |
| 5.6.x | 0.4.x |
| 5.7.x | 0.4.x |
| 5.8.x | 0.4.x |
| 6.x.x | 0.4.x |
| 7.x.x | 0.4.x |
| 8.x.x | 1.0.x |
| 9.x.x | 2.x.x |
| 10.x.x | 2.x.x |
| 11.x.x | 2.x.x |
| 12.x.x | 2.x.x |
| 13.x.x | 2.x.x |
Run this command to add new records to existing application safely
php artisan BangladeshGeocode:addnewYou can install the package via composer:
composer require devfaysal/laravel-bangladesh-geocodeSetup everything with just running one artisan command
php artisan BangladeshGeocode:setupuse Devfaysal\BangladeshGeocode\Models\Division;
use Devfaysal\BangladeshGeocode\Models\District;
use Devfaysal\BangladeshGeocode\Models\Upazila;
$divisions = Division::all();
$districts = District::all();
$upazilas = Upazila::all();
$division = Division::where('name', 'Dhaka');
$allDistrictsOfDhaka = $division->districts;
$division = Division::find(1);
$districts = $division->districts;
$district = District::find(1);
$upazilas = $district->upazilas;
//Use any Laravel (eluquent) model functions...The package is well supported by automated test.
composer testPlease see CONTRIBUTING for details.
If you discover any security related issues, please email devfaysal@gmail.com instead of using the issue tracker.
- Faysal Ahamed
- All Contributors
- Special Thanks to Nuhil Mehdy. All of the Division, District and Upazila data of this package is from his repo.
The MIT License (MIT). Please see License File for more information.