sociolink/api-resource-bundle
A Laravel package that bundles reusable API resource classes and helpers for building consistent JSON API endpoints. It streamlines serialization, relationships, and response formatting, helping you expose Eloquent models through clean, maintainable resource layers.
Start by generating or inspecting the <Entity>Filters catalogue for an existing entity, then open the generated filter class and locate the QueryParameter arguments. In v2.2.0 every generated filter parameter now includes description: ''; system parameters status and realm are exempt.
First steps:
<Entity>Filters class and the corresponding DTO.description: values from the front-end roadmap before exposing the endpoint.First use case: scaffold filters for a new API resource, fill the French descriptions, and let the architecture test confirm that every non-system filter is documented before merge.
QueryParameter(description: '...').#[ApiProperty(description: '')], and filters now use the same empty-description placeholder on QueryParameter. Keep both layers aligned when documenting an entity.status and realm alone. These are application-level system parameters and are explicitly exempt from the description requirement.description: ''.description: '' is intentionally incomplete. The application architecture test will fail until you fill it. This is expected behaviour, not a generator bug.status and realm are exempt because they are system parameters from the application. Do not treat their missing descriptions as an oversight.description: default or add project-specific wording. That is the cleanest extension point before editing generated files directly.How can I help you explore Laravel packages today?