@@ -9,7 +9,6 @@ The goal of this package is to provide you with a set of most common exceptions
99* Handles exceptions report to logs.
1010* Overwrites default Validator to make validation errors more verbose.
1111* Has a FormRequest that to handle validation errors and pass them to ApiExceptions layer.
12- * Has middleware to catch all system errors such us ` RuntimeExceptions ` or ` ModelNotFoundException ` to handle them and threat as normal ApiExceptions.
1312
1413## Installation
1514
@@ -62,7 +61,7 @@ Also it can have `meta` attribute when there is additional info. For example for
6261}
6362```
6463
65- For ` ValidationApiException ` , meta attribute has ` errors ` object that contains validations errors.
64+ For ` ValidationApiException ` , meta attribute has ` errors ` object that contains validations errors.
6665Every attribute of this object is a name of a request parameter to validate to and value is an array of errors with description.
6766
6867### Handler
@@ -90,15 +89,10 @@ class Handler extends LaravelExceptionHandle
9089### FormRequest
9190
9291To use FormRequest extend all your Request classes with ` \Lanin\Laravel\ApiExceptions\Support\Request ` .
93- It will automatically support validation errors and pass them to the output.
92+ It will automatically support validation errors and pass them to the output.
9493
9594It also has a very handy helper method ` validatedOnly() ` that returns from request only those items that are registered in rules method.
9695
97- ### RuntimeExceptionsHandler
98-
99- Also you can catch all system exceptions using ` \Lanin\Laravel\ApiExceptions\Support\RuntimeExceptionsHandler ` .
100- Just import it to your ` Http\Kernel ` $middleware array, and that's it.
101-
10296## Contributing
10397
10498Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
0 commit comments