Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. {status: 500,
  2. message: "Trying to get id os non object at UserController.php line 150"
  3. trace: {...}
  4. }
  5.  
  6. /**
  7. * Render an exception into an HTTP response.
  8. *
  9. * @param IlluminateHttpRequest $request
  10. * @param Exception $exception
  11. * @return IlluminateHttpResponse
  12. */
  13. public function render($request, Exception $exception)
  14. {
  15. if ($this->isHttpException($exception))
  16. {
  17. if ($exception->getStatusCode() == 404)
  18. return response(['exception'=>$exception], 404);
  19.  
  20. if ($exception->getStatusCode() == 500)
  21. return response(['exception'=>$exception], 500);
  22. }
  23.  
  24. return parent::render($request, $exception);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement