src/ExceptionHandler.php
protected function getResponse(Request $request, Exception $exception, Exception $transformed)
    {
        $id = $this->container->make(ExceptionIdentifier::class)->identify($exception);

        $flattened = FlattenException::create($transformed);
        $code = $flattened->getStatusCode();
        $headers = $flattened->getHeaders();

        return $this->getDisplayer($request, $exception, $transformed, $code)->display($transformed, $id, $code, $headers);
    }
protected function getResponse(Request $request, Exception $exception, Exception $transformed)
    {
        $id = $this->container->make(ExceptionIdentifier::class)->identify($exception);

        $flattened = FlattenException::create($transformed);
        $code = $flattened->getStatusCode();
        $headers = $flattened->getHeaders();

        return $this->getDisplayer($request, $exception, $transformed, $code)->display($transformed, $id, $code, $headers);
    }
protected function getResponse ( Request $ request , Exception $ exception , Exception $ transformed ) { $ id = $ this -> container -> make ( ExceptionIdentifier :: class ) -> identify ( $ exception ) ; $ flattened = FlattenException :: create ( $ transformed ) ; $ code = $ flattened -> getStatusCode ( ) ; $ headers = $ flattened -> getHeaders ( ) ; return $ this -> getDisplayer ( $ request , $ exception , $ transformed , $ code ) -> display ( $ transformed , $ id , $ code , $ headers ) ; }
Get the approprate response object.

@param \Illuminate\Http\Request $request
@param \Exception               $transformed
@param \Exception               $exception

@return \Illuminate\Http\Response
Get the approprate response object .