anvargear / laravel-states-col
Laravel Departaments and Cities Colombia is a bundle for Laravel, providing Almost ISO 3166_3, Dane Code and Capital.
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:laravel-library
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ^7.1
This package is not auto-updated.
Last update: 2024-11-24 06:23:02 UTC
README
Laravel Departaments and Cities Colombia is a bundle for Laravel, providing Almost ISO 3166_3, Dane Code and Capital
Installation
Add anvargear/laravel-states-col
to composer.json
.
"anvargear/laravel-states-col": "dev-master"
Run composer update
to pull down the latest version of Departaments and Cities Colombia List.
If you're using Laravel 5.5, you don't have to edit app/config/app.php
.
Edit app/config/app.php
and add the provider
and filter
'providers' => [
'AnvaGear\States\StatesServiceProvider',
]
Now add the alias.
'aliases' => [
'StatesCol' => 'AnvaGear\States\StatesFacade',
]
Model
You can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name Colstates
suits you, leave it. Otherwise run the following command
$ php artisan vendor:publish
Next generate the migration file:
$ php artisan countries:migration
$ composer dump-autoload