Division, District and Upazila data of Bangladesh for Laravel application. Migration and seeders are ready. Just publish migrations and seeders and then migrate the db and run the seed command.
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 |
You can install the package via composer:
composer require devfaysal/laravel-bangladesh-geocode
Setup everything with just running one artisan command
php artisan BangladeshGeocode:setup
use 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::find(1);
$districts = $division->districts;
$district = District::find(1);
$upazilas = $district->upazilas;
//Use any Laravel model functions...
composer test
Please see CHANGELOG for more information what has changed recently.
Please 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.