ogestor/eloquence-mappable
Eloquent attribute mapping for Laravel models: map database columns to friendly model attributes, customize accessor and mutator behavior, and keep your code clean while data transforms between storage and application layers.
ogestor/eloquence-mappable adds a lightweight Mappable trait to Laravel's Eloquent models, making it easy to translate external data—API payloads, flat arrays, or DTOs—into model attributes through explicit, reusable mappings. Instead of scattering $fillable logic or ad-hoc array access across your codebase, you declare how source keys correspond to model properties once and reuse it everywhere.
How can I help you explore Laravel packages today?