Skip to content

Commit c928f6d

Browse files
author
Andrey Helldar
committed
Fixed Class PrettyRoutes\ServiceProvider not found after update
1 parent 3f00ae9 commit c928f6d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ If your using autodiscovery in Laravel, it should just work.
3030
Otherwise - add to your `config/app.php` providers array to where all your package providers are (before your app's providers):
3131

3232
```php
33-
PrettyRoutes\AppServiceProvider::class,
33+
PrettyRoutes\ServiceProvider::class,
3434
```
3535

3636
By default, the package exposes a `/routes` url. If you wish to configure this, publish the config.
3737

3838
```bash
39-
php artisan vendor:publish --provider="PrettyRoutes\AppServiceProvider"
39+
php artisan vendor:publish --provider="PrettyRoutes\ServiceProvider"
4040
```
4141

4242
If accessing `/routes` isn't working, ensure that you've included the provider within the same area as all your package providers (before all your app's providers) to ensure it takes priority.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"laravel": {
5454
"providers": [
5555
"PrettyRoutes\\BladeServiceProvider",
56-
"PrettyRoutes\\AppServiceProvider"
56+
"PrettyRoutes\\ServiceProvider"
5757
]
5858
}
5959
}

src/AppServiceProvider.php renamed to src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
66

7-
class AppServiceProvider extends BaseServiceProvider
7+
class ServiceProvider extends BaseServiceProvider
88
{
99
public function register()
1010
{

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Tests;
44

55
use Orchestra\Testbench\TestCase as BaseTestCase;
6-
use PrettyRoutes\AppServiceProvider;
6+
use PrettyRoutes\ServiceProvider;
77

88
abstract class TestCase extends BaseTestCase
99
{
@@ -15,7 +15,7 @@ protected function getEnvironmentSetUp($app)
1515

1616
protected function getPackageProviders($app): array
1717
{
18-
return [AppServiceProvider::class];
18+
return [ServiceProvider::class];
1919
}
2020

2121
protected function setRoutes($app)

0 commit comments

Comments
 (0)