12345678910111213141516171819202122232425262728 |
- <?php
-
- namespace App\Exceptions;
-
- use Exception;
-
- class CustomException extends Exception {
- /**
- * Report the exception.
- *
- * @return void
- */
- public function report()
- {
- }
-
- /**
- * Render the exception into an HTTP response.
- *
- * @param \Illuminate\Http\Request
- * @return \Illuminate\Http\Response
- */
- public function render($request)
- {
- return response()->view('errors.custom', array( 'exception' => $this ));
- // return response()->view('errors.' . '500', [], 500);
- }
- }
|