laravel-liberu/ro-addresses is a Laravel package for romanian addreses extension for addresses.
It currently has 0 GitHub stars and 2 downloads on Packagist (latest version v3.3.14).
Install it with composer require laravel-liberu/ro-addresses.
Discover more Laravel packages by laravel-liberu
or browse all Laravel packages to compare alternatives.
Last updated
Romanian Addresses extension for Addresses, the Laravel Liberu package.
ro-addresses in order to customize the form
and the template for the address cardsAppServiceProvider to the config/app.php list of providers (package auto-discovery is not used as loading order is important)Addresable trait.RoAddreses vue component where required. It takes the same parameters as Addresses - id and type
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 classIf 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 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 releasedThe 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.
are welcome. Pull requests are great, but issues are good too.
This package is released under the MIT license.