laravel-liberu / ro-addresses
Romanian Addreses extension for Addresses
Fund package maintenance!
laravel-liberu
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-12-13 04:10:06 UTC
README
Romanian Addresses
Romanian Addresses extension for Addresses, the Laravel Liberu 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-addresses
in 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
AppServiceProvider
to theconfig/app.php
list 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
Addresable
trait. - publish the VueJs component.
- insert the
RoAddreses
vue component where required. It takes the same parameters asAddresses
-id
andtype
being the essential ones.
<ro-addresses :id="modelId" type="model_class">
</ro-addresses>
where
modelId
is the addressable model idmodel_alias
is 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=liberu-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=liberu-assets
- a common alias for when wanting to update the VueJS component, once a newer version is releasedphp artisan vendor:publish --tag=liberu-seeders
- a common alias for when wanting to update the seeders, once a newer version is released
Notes
The Laravel Liberu 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.