kobykorman/eloquentify
Eloquentify turns one custom SQL query with JSON-aggregated relations into fully hydrated nested Eloquent models, collapsing N+1 and R+1 round trips into a single query with zero configuration.
laravel/framework ^13.0), verified against Laravel 13.x with the full test suite passing^11.0, Pest ^4.0, pest-plugin-laravel ^4.0Complete redesign: JSON-aggregation hydration replaces the v1 column-prefix scheme.
json_agg/json_build_object and equivalents) named after the model's relation methods, instead of prefixed flat columnseloquentify($result) no longer takes a relations hierarchy: relations are detected from the model's relation methods (which must declare relation return types)pivot key (custom pivot classes and ->as() accessors supported)NULL, [], [null])ModelMeta, the relations-hierarchy argument, and the column prefix schemeSee the README for the new usage.
author() returning User was never supportednest() is protected)morphTo, pivot data, prefix collisions at every level and across branches, row-value conflictspost_repost_id hydrated as reid)AS posts_total)Full Changelog: https://github.com/kobykorman/eloquentify/commits/v1.0.0
How can I help you explore Laravel packages today?