Handler.php 946 B

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