laravel-enso / ro-addresses
此包已被 弃用 且不再维护。未建议替代包。
Addresses 扩展包的罗马尼亚地址
3.3.8
2020-04-13 09:32 UTC
Requires
- laravel-enso/addresses: 3.4.*
- laravel-enso/countries: 1.1.*
- laravel-enso/permissions: 3.4.*
- dev-master
- 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
- dev-feature/psr4Compliance
- dev-feature/php7.4
- dev-refactor/insightsUpdates
- dev-update/label
- dev-feature/countyOptions
- dev-hotfix/routes
- dev-adminlte
This package is auto-updated.
Last update: 2022-02-01 13:41:54 UTC
README
罗马尼亚地址扩展包,用于 Addresses,Laravel Enso 包。
功能
- 对地址列进行更改,以更好地适应罗马尼亚地区
- 包含两个额外的表:县和地区
- 包含用于编辑和创建地址的自定义表单
- 包含个性化配置
- 包含自定义的 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=enso-config
- 更新配置的通用别名,一旦发布新版本php artisan vendor:publish --tag=ro-addresses-assets
- VueJS 组件php artisan vendor:publish --tag=enso-assets
- 更新 VueJS 组件的通用别名,一旦发布新版本php artisan vendor:publish --tag=enso-seeders
- 更新生成器的通用别名,一旦发布新版本
注意
Laravel Enso Core 包不包含此包,只包含通用的 Addresses。
本软件包依赖于Addresses,并且不能独立工作。
贡献
是受欢迎的。拉取请求很好,但问题报告也同样受欢迎。
许可
本软件包采用MIT许可证发布。