Handler.php 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Exceptions;
  3. use Exception;
  4. use Symfony\Component\HttpKernel\Exception\HttpException;
  5. use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
  6. class Handler extends ExceptionHandler
  7. {
  8. /**
  9. * A list of the exception types that should not be reported.
  10. *
  11. * @var array
  12. */
  13. protected $dontReport = [
  14. HttpException::class,
  15. ];
  16. /**
  17. * Report or log an exception.
  18. *
  19. * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
  20. *
  21. * @param \Exception $e
  22. * @return void
  23. */
  24. public function report(Exception $e)
  25. {
  26. return parent::report($e);
  27. }
  28. /**
  29. * Render an exception into an HTTP response.
  30. *
  31. * @param \Illuminate\Http\Request $request
  32. * @param \Exception $e
  33. * @return \Illuminate\Http\Response
  34. */
  35. public function render($request, Exception $e)
  36. {
  37. return parent::render($request, $e);
  38. }
  39. }