Skip to content

Commit

Permalink
Add Laravel 5.5 auto discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsfwk committed Oct 25, 2017
1 parent 6f1187b commit e247ad6
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 e247ad6

Please sign in to comment.