src/Exceptions/Handler.php
protected function toIlluminateResponse($response, Exception $e)
    {
        $response = new Response($response->getContent(), $response->getStatusCode(), $response->headers->all());

        $response->exception = $e;

        return $response;
    }
protected function toIlluminateResponse($response, Exception $e)
    {
        $response = new Response($response->getContent(), $response->getStatusCode(), $response->headers->all());

        $response->exception = $e;

        return $response;
    }
protected function toIlluminateResponse ( $ response , Exception $ e ) { $ response = new Response ( $ response -> getContent ( ) , $ response -> getStatusCode ( ) , $ response -> headers -> all ( ) ) ; $ response -> exception = $ e ; return $ response ; }
Map exception into an illuminate response.

@param  \Symfony\Component\HttpFoundation\Response  $response
@param  \Exception  $e
@return \Illuminate\Http\Response
Map exception into an illuminate response .