traits/helpers/TraitComponentNotFoundResponse.php
protected function getErrorResponse()
    {
        if (Request::ajax()) {
            throw new AjaxException('Element not found');
        }

        return Response::make($this->controller->run('404')->getContent(), 404);
    }
protected function getErrorResponse()
    {
        if (Request::ajax()) {
            throw new AjaxException('Element not found');
        }

        return Response::make($this->controller->run('404')->getContent(), 404);
    }
protected function getErrorResponse ( ) { if ( Request :: ajax ( ) ) { throw new AjaxException ( 'Element not found' ) ; } return Response :: make ( $ this -> controller -> run ( '404' ) -> getContent ( ) , 404 ) ; }
Get error response for 404 page
@throws AjaxException
@return \Illuminate\Http\Response
Get error response for 404 page