getMessage(); $code = $exception->getCode(); } elseif ($exception instanceof NotFoundHttpException) { $msg = 'not found page'; $code = - 404; } else { Log::error(parent::render($request, $exception)); $msg = 'Server Bad'; $code = - 500; } return response()->horesp($code, null, $msg); return parent::render($request, $exception); } }