Repo for the search and displace core module including the interface to select files and search and displace operations to run on them. https://searchanddisplace.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.1 KiB

3 years ago
  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 are not reported.
  9. *
  10. * @var array
  11. */
  12. protected $dontReport = [
  13. //
  14. ];
  15. /**
  16. * A list of the inputs that are never flashed for validation exceptions.
  17. *
  18. * @var array
  19. */
  20. protected $dontFlash = [
  21. 'password',
  22. 'password_confirmation',
  23. ];
  24. /**
  25. * Report or log an exception.
  26. *
  27. * @param \Exception $exception
  28. * @return void
  29. *
  30. * @throws \Exception
  31. */
  32. public function report(Exception $exception)
  33. {
  34. parent::report($exception);
  35. }
  36. /**
  37. * Render an exception into an HTTP response.
  38. *
  39. * @param \Illuminate\Http\Request $request
  40. * @param \Exception $exception
  41. * @return \Symfony\Component\HttpFoundation\Response
  42. *
  43. * @throws \Exception
  44. */
  45. public function render($request, Exception $exception)
  46. {
  47. return parent::render($request, $exception);
  48. }
  49. }