public static function isRender($request)
    {
        return true;
        $accept = $request->header('accept') ?? '';
        if (static::isHas($accept, 'json') || static::isHas($accept, 'api')) {
            return true;
        } else if (static::isHas($accept, 'html') || static::isHas($accept, 'xml') || static::isHas($accept, 'text')) {
            return false;
        } else if ($request->header('x-ddv-restful-api')) {
            return true;
        } else if ($request->header('authorization')) {
            foreach ($request->headers->keys() as $value) {
                if (static::isHas($accept, 'x-ddv-')) {
                    return true;
                }
            }
        }
        return false;
    }
public static function isRender($request)
    {
        return true;
        $accept = $request->header('accept') ?? '';
        if (static::isHas($accept, 'json') || static::isHas($accept, 'api')) {
            return true;
        } else if (static::isHas($accept, 'html') || static::isHas($accept, 'xml') || static::isHas($accept, 'text')) {
            return false;
        } else if ($request->header('x-ddv-restful-api')) {
            return true;
        } else if ($request->header('authorization')) {
            foreach ($request->headers->keys() as $value) {
                if (static::isHas($accept, 'x-ddv-')) {
                    return true;
                }
            }
        }
        return false;
    }
public static function isRender ( $ request ) { return true ; $ accept = $ request -> header ( 'accept' ) ?? '' ; if ( static :: isHas ( $ accept , 'json' ) || static :: isHas ( $ accept , 'api' ) ) { return true ; } else if ( static :: isHas ( $ accept , 'html' ) || static :: isHas ( $ accept , 'xml' ) || static :: isHas ( $ accept , 'text' ) ) { return false ; } else if ( $ request -> header ( 'x-ddv-restful-api' ) ) { return true ; } else if ( $ request -> header ( 'authorization' ) ) { foreach ( $ request -> headers -> keys ( ) as $ value ) { if ( static :: isHas ( $ accept , 'x-ddv-' ) ) { return true ; } } } return false ; }
RenderByLaravel an exception into an HTTP response.

@param  \Illuminate\Http\Request $request
@return boolean
RenderByLaravel an exception into an HTTP response .