Handler.php 944 B

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