Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {status: 500,
- message: "Trying to get id os non object at UserController.php line 150"
- trace: {...}
- }
- /**
- * Render an exception into an HTTP response.
- *
- * @param IlluminateHttpRequest $request
- * @param Exception $exception
- * @return IlluminateHttpResponse
- */
- public function render($request, Exception $exception)
- {
- if ($this->isHttpException($exception))
- {
- if ($exception->getStatusCode() == 404)
- return response(['exception'=>$exception], 404);
- if ($exception->getStatusCode() == 500)
- return response(['exception'=>$exception], 500);
- }
- return parent::render($request, $exception);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement