You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+23-85Lines changed: 23 additions & 85 deletions
Original file line number
Diff line number
Diff line change
@@ -574,103 +574,41 @@ return with code 405:
574
574
575
575
### Best practice use with the Laravel and Lumen Frameworks
576
576
577
-
To call the function when errors occur, you need to make changes to file `app/Exceptions/Handler.php`:
578
-
577
+
If you use the Laravel or Lumen framework, you can update the inheritance in the `app\Exceptions\Handler.php` file to `Helldar\ApiResponse\Support\LaravelException`:
579
578
```php
580
-
use Illuminate\Auth\AuthenticationException;
581
-
use Illuminate\Contracts\Support\Responsable;
582
-
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
583
-
use Illuminate\Foundation\Http\Exceptions\MaintenanceModeException;
584
-
use Illuminate\Http\Exceptions\HttpResponseException;
585
-
use Illuminate\Routing\Router;
586
-
use Illuminate\Support\Arr;
587
-
use Illuminate\Validation\ValidationException;
588
-
use Symfony\Component\HttpFoundation\JsonResponse;
589
-
use Throwable;
579
+
use Helldar\ApiResponse\Support\LaravelException as ExceptionHandler;
0 commit comments