protected static function allowHeaders()
    {
        if (self::$needHeaders !== null) {
            return self::$needHeaders;
        }

        return self::$needHeaders = Request::is('GET') || Request::is('HEAD');
    }
protected static function allowHeaders()
    {
        if (self::$needHeaders !== null) {
            return self::$needHeaders;
        }

        return self::$needHeaders = Request::is('GET') || Request::is('HEAD');
    }
protected static function allowHeaders ( ) { if ( self :: $ needHeaders !== null ) { return self :: $ needHeaders ; } return self :: $ needHeaders = Request :: is ( 'GET' ) || Request :: is ( 'HEAD' ) ; }
Check if is HEAD or GET, you can overwrite this method

@return bool
Check if is HEAD or GET you can overwrite this method