Skip to content

Commit 465ba30

Browse files
committed
Add facade package discovery
1 parent f92d0c8 commit 465ba30

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ For Laravel 5.4
7878
'Debugger' => Lanin\Laravel\ApiDebugger\Facade::class,
7979
```
8080

81+
For Laravel 5.5 package supports [package discovery](https://laravel.com/docs/5.5/packages#package-discovery) feature.
82+
8183
## Json response
8284

8385
Before extension will populate your answer it will try to distinguish if it is a json response. It will do it by validating if it is a JsonResponse instance. The best way to do it is to return `response()->json();` in your controller's method.

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
"laravel": {
3939
"providers": [
4040
"Lanin\\Laravel\\ApiDebugger\\ServiceProvider"
41-
]
41+
],
42+
"aliases": {
43+
"Debugger": "Lanin\\Laravel\\ApiDebugger\\Facade"
44+
}
4245
}
4346
}
4447
}

0 commit comments

Comments
 (0)