Skip to content

Commit f0930a1

Browse files
authored
Merge pull request #5 from yemenifree/master
Add Laravel 5.5 Package Auto-Discovery
2 parents cd65ac5 + fbe0edf commit f0930a1

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,12 @@
1616
},
1717
"require": {
1818
"illuminate/support": "5.3.*||5.4.*||5.5.*"
19+
},
20+
"extra": {
21+
"laravel": {
22+
"providers": [
23+
"Zschuessler\\RouteToClass\\ServiceProvider"
24+
]
25+
}
1926
}
2027
}

readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ All contents of this readme are present here in more organized format:
2727
composer require zschuessler/laravel-route-to-class
2828
```
2929

30-
**Add the service provider to your app configuration**
30+
> If you do run the package on Laravel 5.5+, you can start using the package at this point. [package auto-discovery](https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518) takes care of the magic of adding the service provider.
3131
32-
Add the following line under the `providers` array key in *app/config.php*:
32+
** Add the service provider to your app configuration **
33+
34+
If you do not run Laravel 5.5 (or higher), then add the following line under the `providers` array key in *app/config.php*:
3335

3436
```php
3537
/**

0 commit comments

Comments
 (0)