SHARE
TWEET

Untitled

a guest Feb 20th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top