ahrasel/laravel-bangladesh-geo
Composer 安装命令:
composer require ahrasel/laravel-bangladesh-geo
包简介
A library for handling Bangladesh geographical locations in Laravel.
README 文档
README
A Laravel package for managing geo-locations in Bangladesh, including a predefined list of divisions, districts, upazilas and unions.
Author
- MD Amanullah Hoque - Github
Installation
You can install the package via Composer. Run the following command in your Laravel project:
composer require ahrasel/bangladesh-geo
Service Provider
If you're using Laravel 5.4 or lower, you need to register the service provider. Add the following line to the providers array in config/app.php:
Ahrasel\BangladeshGeo\BangladeshGeoServiceProvider::class,
Migration
The package includes a migration for the all table. To run the migration, use the following Artisan command:
php artisan migrate
Seeder
You can seed the all table with predefined data by running the following command:
php artisan db:seed --class=Ahrasel\\BangladeshGeo\\Database\\Seeders\\DistrictsSeeder
Usage
You can interact with the District model as follows:
use Ahrasel\BangladeshGeo\Models\District; $district = District::create(['name' => 'New District']);
License
This package is licensed under the MIT License. See the LICENSE file for more information.
Acknowledgements
- Laravel - The PHP framework that powers this package.
- Packagist - For hosting our package.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-25