protected static function handleGlobalScope($type)
    {
        if (Eye::laravelVersionIs('>=', '5.2.0')) {
            static::addGlobalScope('type', function (Builder $builder) use ($type) {
                $builder->where('type', $type);
            });
        } else {
            static::addGlobalScope(new TypeLegacy($type));
        }

    }