Skip to content

Commit

Permalink
Merge pull request #1 from GroundSix/master
Browse files Browse the repository at this point in the history
Add Laravel 5.5 auto discovery
  • Loading branch information
codescheme authored Oct 25, 2017
2 parents 6f1187b + e247ad6 commit 6a846bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ With thanks to https://postcodes.io
composer require codescheme/postcodes
```

For Laravel 5.5 *Postcodes* will be automatically discovered.

Edit `/config/app.php` and add the service provider to your `providers` array.
```php
'providers' => [
Expand Down
12 changes: 11 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,15 @@
},
"scripts": {
"test": "phpunit"
},
"extra": {
"laravel": {
"providers": [
"Codescheme\\Postcodes\\PostcodeServiceProvider"
],
"aliases": {
"Postcode": "Codescheme\\Postcodes\\Facades\\Postcode"
}
}
}
}
}

0 comments on commit 6a846bd

Please sign in to comment.