diff --git a/README.md b/README.md index d19d60d..317aa42 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,16 @@ -## Country package for Laravel 4 +## Country package for Laravel 4 & 5 Translates between country name and abbreviation and vise versa. ## Installation -Refer to [vinelab/country on packagist.org](https://packagist.org/packages/vinelab/country) for composer installation instructions. -Edit **app.php** and add ```'Vinelab\Country\CountryServiceProvider',``` to the ```'providers'``` array. +``` +composer update vinelab/country +``` -It will automatically alias itself as **Country** so no need to aslias it in your **app.php** unless you would like to customize it. In that case edit your **'aliases'** in **app.php** adding ``` 'MyCountry' => 'Vinelab\Country\Facades\Guide',``` +## Publish Config File +``` +php artisan vendor:publish +``` ## Usage diff --git a/src/Vinelab/Country/CountryServiceProvider.php b/src/Vinelab/Country/CountryServiceProvider.php index 45dd206..f34258e 100644 --- a/src/Vinelab/Country/CountryServiceProvider.php +++ b/src/Vinelab/Country/CountryServiceProvider.php @@ -19,7 +19,7 @@ class CountryServiceProvider extends ServiceProvider public function boot() { $this->publishes([ - __DIR__.'/../config/countries.php' => config_path('countries.php') + __DIR__.'/../../config/countries.php' => config_path('countries.php') ], 'config'); } diff --git a/src/config/countries.php b/src/config/countries.php index 21479e7..f7ec421 100644 --- a/src/config/countries.php +++ b/src/config/countries.php @@ -182,6 +182,7 @@ 'NU' => 'Niue', 'NZ' => 'New Zealand', 'OM' => 'Oman', + 'PS' => 'Palestine', 'PA' => 'Panama', 'PC' => 'Pacific Islands Trust Territory', 'PE' => 'Peru',