Handler.php 844 B

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