lfbellante/package-laravel-italy

This is a package for the laravel framework witch contains all italy cities, provinces and regions.

v0.1.0 2022-01-11 15:25 UTC

This package is not auto-updated.

Last update: 2024-05-30 00:36:25 UTC


README

This is a package for the laravel framework witch contains all italy cities, provinces and regions.

Installation

composer require lfbellante/package-laravel-italy

Usage

Next, you should publish the Italy configuration, migration and seeder files using the vendor:publish Artisan command.

The italy configuration file will be placed in your application's config directory The italy migrations, factories and seeders files will be placed in your application's database directory. The italy json source file will be placed in your storage/app directory.

# Publish config file
php artisan vendor:publish --tag=italy-config

# Load migration & run
php artisan vendor:publish --tag=italy-migrations
php artisan migrate

# Load seeder
php artisan vendor:publish --tag=italy-seeders

# Seeding Regions
php artisan db:seed --class=RegionSeeder

# Seeding Province
php artisan db:seed --class=ProvinceSeeder

# Seeding City
php artisan db:seed --class=CitySeeder

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT