?external1=true to include sensitive fields).v1 vs. v2 scopes) without breaking changes.?partner=acme includes Acme-only fields).?feature=analytics_v2).Adopt if:
Look elsewhere if:
ApiResource).*"This bundle lets us dynamically control what data our API exposes—without writing custom serialization logic for every endpoint. For example, we can hide sensitive fields by default but unlock them for authorized partners via a simple query parameter (?partner=acme). It’s a lightweight way to:
*"This is a Symfony-specific query-param-to-serialization-group mapper that plugs into Doctrine’s ScopeCollection. Key benefits:
config.yml and let the bundle handle the rest.can-add-external2-scope).Prototype plan:
api.get_item endpoint.?external1=true to verify first_always_included_group + scope.internal_name1 are serialized.SerializerContext manipulation).Risks:
Alternatives:
ScopeCollection.Let’s start with a spike to validate the query-param parsing and security checks."*
How can I help you explore Laravel packages today?