You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PaginatedDataCollection — wraps a Laravel paginator into a {"data":[...],"meta":{...},"links":{...}} envelope, hydrating items through the same compiled hydrator as from().
HasLaravelIntegration::paginatedCollection() — opt-in entry point, e.g. ItemData::paginatedCollection(Item::paginate(20)).
Responsable + JsonSerializable — return it directly from a controller.
No new hard dependency: only Illuminate\Contracts\Pagination\* (already required via illuminate/contracts); illuminate/pagination is require-dev, needed only by the concrete paginator you pass in.
#[WrapIn] — wraps a single object's toResponse() payload under a key ({"data": {...}}), without touching toArray()/toJson() — the from(toArray()) round-trip stays intact.
toResponse() now accepts status and headers parameters.