Dashboard sipadu mbip
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CustomException.php 587B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Exceptions;
  3. use Exception;
  4. class CustomException extends Exception {
  5. /**
  6. * Report the exception.
  7. *
  8. * @return void
  9. */
  10. public function report()
  11. {
  12. }
  13. /**
  14. * Render the exception into an HTTP response.
  15. *
  16. * @param \Illuminate\Http\Request
  17. * @return \Illuminate\Http\Response
  18. */
  19. public function render($request)
  20. {
  21. return response()->view('errors.custom', array( 'exception' => $this ));
  22. // return response()->view('errors.' . '500', [], 500);
  23. }
  24. }