kanuuu/eloquence-mappable
Eloquence Mappable adds a trait to Laravel Eloquent models for mapping attributes and relationships to custom array and JSON keys, so you can shape clean API output without exposing database column names.
kanuuu/eloquence-mappable adds a lightweight mappable trait to Laravel Eloquent models, letting you declaratively translate model attributes into a custom key/value representation. Instead of scattering accessor logic or array-wrangling in controllers, you define a single map that describes how attributes should be exposed—ideal for API resources, exports, and legacy integrations that expect differently named fields.
How can I help you explore Laravel packages today?