Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquence Mappable

Eloquence Mappable Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Declarative key-to-attribute mappings
  • Accepts arrays and object-based data sources
  • Drops into existing Eloquent models via a trait
  • Keeps transformation logic reusable and testable
  • No configuration or service provider required
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels