1234567891011121314151617181920212223 |
- <?php
- namespace App\Exceptions;
- use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
- use Throwable;
- class Handler extends ExceptionHandler
- {
- /**
- * Render an exception into an HTTP response.
- *
- * @param \Illuminate\Http\Request $request
- * @param \Throwable $e
- * @return \Symfony\Component\HttpFoundation\Response
- *
- * @throws \Throwable
- */
- public function render($request, Throwable $e)
- {
- return response()->json(['message' => 'Oops, something went wrong']);
- }
- }
|