Skip to content

Commit 61f4f4d

Browse files
committed
Removed automatic registration of 'ValidationErrorExceptionServiceProvider'
1 parent b2b2be9 commit 61f4f4d

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@ Then install the package with:
2727
composer require yakovenko/lighthouse-validation-error-exception
2828
```
2929

30+
**Registration provider**
31+
32+
You need to add your service provider to the `providers` array in your Laravel application's ```config/app.php``` file:
33+
34+
```php
35+
'providers' => [
36+
/*
37+
* Package Service Providers...
38+
*/
39+
Yakovenko\ValidationErrorException\ValidationErrorExceptionServiceProvider::class,
40+
],
41+
```
42+
3043
**Publish Configuration**
3144

3245
To publish configuration files and other necessary resources, run:

composer.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"keywords": ["laravel", "laravel-graphql", "lighthouse", "validation", "error-exception"],
55
"type": "library",
66
"license": "MIT",
7-
"version": "1.0.1",
87
"authors": [
98
{
109
"name": "Alexander Yakovenko",
@@ -22,13 +21,6 @@
2221
"nuwave/lighthouse": "^6.0",
2322
"laravel/framework": "^9.0 || ^10.0 || ^11.0"
2423
},
25-
"extra": {
26-
"laravel": {
27-
"providers": [
28-
"Yakovenko\\ValidationErrorException\\ValidationErrorExceptionServiceProvider"
29-
]
30-
}
31-
},
3224
"config": {
3325
"optimize-autoloader": true,
3426
"sort-packages": true

0 commit comments

Comments
 (0)