augustpermana/laravel-meta-generator
Attach and manage key-value metadata for Eloquent models without altering main tables. Provides auto type detection and casting, a MetaModel base, and artisan commands to generate meta models and clean orphaned records for easy setup and maintenance.
retrieved, saved), enabling reactive metadata generation without polluting business logic.with()).Share or Meta tags in views). Works alongside existing packages like spatie/laravel-seo-tools or orchid/platform.Post) to test metadata generation and storage.config/meta-generator.php and publish migrations if needed.Illuminate\Database\Eloquent\Model. No support for non-Eloquent entities (e.g., API resources).laravel-model-caching). Test for event handler collisions.php artisan vendor:publish --provider="Augustpermana\MetaGenerator\MetaGeneratorServiceProvider").config/meta-generator.php.HasMeta trait to models.meta(['title', 'description'])).@meta) or API endpoints to expose metadata.config/meta-generator.php) reduces maintenance overhead but requires discipline to avoid hardcoding.MetaGenerated/MetaGenerationFailed events.with() to eager-load metadata.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Metadata generation timeout | Broken SEO/social tags | Implement retries or fallback to static values. |
| Database connection issues | Missing metadata in responses | Use a cache fallback or queue failed jobs. |
| Custom driver API failures | Inconsistent metadata | Validate responses and log failures. |
| Event handler conflicts | Silent metadata corruption | Test event ordering; use unique event names. |
| Schema migrations | Downtime during rollout | Use zero-downtime migrations (e.g., add columns). |
How can I help you explore Laravel packages today?