laravel-liberu / ro-addresses
Addresses的罗马尼亚地址扩展
v3.3.14
2023-10-13 01:27 UTC
Requires
- laravel-liberu/addresses: 3.4.*
Requires (Dev)
- rector/rector: ^0.17.0
- dev-main
- v3.3.14
- v3.3.13
- v3.3.12
- v3.3.11
- v3.3.10
- v3.3.9
- 3.3.8
- 3.3.7
- 3.3.6
- 3.3.5
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.11
- 3.1.10
- 3.1.9
- 3.1.8
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.4.7
- 2.4.6
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.50
- 2.1.49
- 2.1.48
- 2.1.47
- 2.1.46
- 2.1.45
- 2.1.44
- 2.1.43
- 2.1.42
- 2.1.41
- 2.1.40
- 2.1.39
- 2.1.38
- 2.1.37
- 2.1.36
- 2.1.35
- 2.1.34
- 2.1.33
- 2.1.32
- 2.1.31
- 2.1.30
- 2.1.29
- 2.1.28
- 2.1.27
- 2.1.26
- 2.1.25
- 2.1.24
- 2.1.23
- 2.1.22
- 2.1.21
- 2.1.20
- 2.1.19
- 2.1.18
- 2.1.17
- 2.1.16
- 2.1.15
- 2.1.14
- 2.1.13
- 2.1.12
- 2.1.11
- 2.1.10
- 2.1.9
- 2.1.8
- 2.1.7
- 2.1.6
- 2.1.5
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-09-13 03:19:09 UTC
README
罗马尼亚地址
罗马尼亚地址扩展,用于Addresses,Laravel Liberu包。
功能
- 修改地址列以更好地适应罗马尼亚语言环境
- 包含两个额外的表:县和地区
- 包含用于编辑和创建地址的自定义表单
- 包含个性化配置
- 包含自定义地址卡片表单和模板的VueJS组件
ro-addresses
- 包含自定义特性
- 包含更新地区的导入
用法
- 将包的
AppServiceProvider
添加到config/app.php
的提供者列表中(不使用包自动发现,因为加载顺序很重要) - 运行迁移,因为它们更改地址表,添加两个其他表,并插入所有地区
- 应发布配置,并在其中定义可地址化类型
- 对于要使地址化的模型,应使用Addresses包的
Addresable
特性。 - 发布VueJs组件。
- 在需要的地方插入
RoAddreses
vue组件。它接受与Addresses
相同的参数 -id
和type
是基本参数。
<ro-addresses :id="modelId" type="model_class">
</ro-addresses>
其中
modelId
是地址化模型的IDmodel_alias
是相应的模型类
导入
如果您需要使用导入,发布包含的模板、导入器和验证器,并将新的导入添加到您的配置中
'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, ],
发布
php artisan vendor:publish --tag=ro-addresses-seeds
- 种子php artisan vendor:publish --tag=ro-addresses-config
- 配置文件php artisan vendor:publish --tag=ro-addresses-form
- 用于创建/编辑地址的表单php artisan vendor:publish --tag=ro-addresses-import
- 用于更新地区的表单php artisan vendor:publish --tag=liberu-config
- 更新配置时的常用别名,一旦发布新版本php artisan vendor:publish --tag=ro-addresses-assets
- VueJS组件php artisan vendor:publish --tag=liberu-assets
- 更新VueJS组件时的常用别名,一旦发布新版本php artisan vendor:publish --tag=liberu-seeders
- 更新种子时的常用别名,一旦发布新版本
注意
Laravel Liberu Core包不包括此包,只包括通用的Addresses。
此包依赖于Addresses,并且不能独立运行。
贡献
欢迎。拉取请求很好,但问题也很好。
许可证
此软件包根据MIT许可证发布。