No Description

Handler.php 844B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. }