Skip to content

Commit

Permalink
update read me, add Palestine to list of countries
Browse files Browse the repository at this point in the history
  • Loading branch information
alisissa committed Dec 14, 2016
1 parent f6fda8f commit 2f18795
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/Vinelab/Country/CountryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
1 change: 1 addition & 0 deletions src/config/countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
'NU' => 'Niue',
'NZ' => 'New Zealand',
'OM' => 'Oman',
'PS' => 'Palestine',
'PA' => 'Panama',
'PC' => 'Pacific Islands Trust Territory',
'PE' => 'Peru',
Expand Down

0 comments on commit 2f18795

Please sign in to comment.