- 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
- add the package's
config/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
- publish the VueJs component.
- insert the
RoAddresesvue component where required. It takes the same parameters as
typebeing the essential ones.
<ro-addresses :id="modelId" type="model_class"> </ro-addresses>
modelIdis the addressable model id
model_aliasis the respective model class
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, ],
php artisan vendor:publish --tag=ro-addresses-seeds- the seeders
php artisan vendor:publish --tag=ro-addresses-config- configuration file
php artisan vendor:publish --tag=ro-addresses-form- form used for creating/editing addresses
php artisan vendor:publish --tag=ro-addresses-import- form used for updating localities
php artisan vendor:publish --tag=enso-config- a common alias for when wanting to update the config, once a newer version is released
php 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 released
php artisan vendor:publish --tag=enso-seeders- a common alias for when wanting to update the seeders, once a newer version is released
This package depends on the Addresses and it does not work standalone.
are welcome. Pull requests are great, but issues are good too.
This package is released under the MIT license.