waad/laravel-model-metadata
{"updated_by": "admin@example.com", "timestamp": "2024-01-01"}).{"category": "electronics"}).metadata.tenant_id as a relation).Adopt When:
whereJsonContains('metadata->tags', 'premium')).Look Elsewhere If:
For Executives: "This package lets us attach flexible, queryable metadata to any model in Laravel—like adding custom fields to users or products without writing migrations. It’s perfect for [Product X], where [use case: e.g., ‘customizable user profiles’ or ‘dynamic product attributes’] changes frequently. The JSON-based approach saves dev time and scales with our roadmap, while caching keeps performance high. MIT license means no vendor lock-in, and the low maintenance cost (82 stars, active updates) makes it a safe bet."
For Engineering:
*"Leveraging HasManyMetadata/HasOneMetadata traits, we can:
User::find(1)->metadata->preferences (no schema changes).Model::whereJsonContains('metadata->tags', 'pro') for filtering.How can I help you explore Laravel packages today?