cgdsoftware/ro-addresses
Composer 安装命令:
composer require cgdsoftware/ro-addresses
包简介
Romanian Addreses extension for Addresses
README 文档
README
Romanian Addresses
Romanian Addresses extension for Addresses, the Laravel Enso package.
Features
- makes changes to the addresses columns to better fit the Romanian locale
- comes with two additional tables for Counties and Localities
- comes with its own customized form for the edit and creation of addresses
- comes with a personalized configuration
- comes with its own VueJS components
ro-addressesin order to customize the form and the template for the address cards - comes with its own trait
- comes with an import that updates localities
Usage
- add the package's
AppServiceProviderto theconfig/app.phplist of providers (package auto-discovery is not used as loading order is important) - run the migrations, as they change the addresses table, add two other tables, and insert all the localities
- the configuration should be published, and inside you need to define the addresable types
- for the models you want to make addressable, you should use the Addresses package's
Addresabletrait. - publish the VueJs component.
- insert the
RoAddresesvue component where required. It takes the same parameters asAddresses-idandtypebeing the essential ones.
<ro-addresses :id="modelId" type="model_class">
</ro-addresses>
where
modelIdis the addressable model idmodel_aliasis the respective model class
Import
If you need to use the import, publish the included template, importer and validator, and add the new import to your configuration:
'localitiesUpdate' => [ 'label' => 'Localities Update', 'template' => 'app/Importing/Templates/localityUpdate.json', 'importerClass' => 'App\Importing\Importers\LocalityUpdateImporter', 'customValidatorClass' => \App\Importing\Validators\LocalityUpdateValidator::class, 'sheetEntriesLimit' => 5000, 'stopOnErrors' => true, ],
Publishes
php artisan vendor:publish --tag=ro-addresses-seeds- the seedersphp artisan vendor:publish --tag=ro-addresses-config- configuration filephp artisan vendor:publish --tag=ro-addresses-form- form used for creating/editing addressesphp artisan vendor:publish --tag=ro-addresses-import- form used for updating localitiesphp artisan vendor:publish --tag=enso-config- a common alias for when wanting to update the config, once a newer version is releasedphp artisan vendor:publish --tag=ro-addresses-assets- the VueJS component,php artisan vendor:publish --tag=enso-assets- a common alias for when wanting to update the VueJS component, once a newer version is releasedphp artisan vendor:publish --tag=enso-seeders- a common alias for when wanting to update the seeders, once a newer version is released
Notes
The Laravel Enso Core package does NOT come with this package included, only with the generic Addresses.
This package depends on the Addresses and it does not work standalone.
Contributions
are welcome. Pull requests are great, but issues are good too.
License
This package is released under the MIT license.
cgdsoftware/ro-addresses 适用场景与选型建议
cgdsoftware/ro-addresses 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 01 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 cgdsoftware/ro-addresses 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cgdsoftware/ro-addresses 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-28