- What is wangta69/laravel-meta used for?
- It is a lightweight meta manager for Laravel applications. It provides a simple API to add, update, and retrieve metadata for models, pages, or SEO tags. Use it when you want to keep meta information organized without building custom storage and retrieval logic.
- How do I install wangta69/laravel-meta with Composer?
- Run composer require wangta69/laravel-meta in your Laravel project. After installation, check the repository README for any service provider registration, configuration publishing, or migration steps. Laravel package auto-discovery may handle provider registration, but confirm that in the package documentation.
- Can laravel-meta attach metadata to Eloquent models?
- Yes, the package is described as managing meta information for models as well as pages and SEO tags. You can use its simple API to add, update, and retrieve metadata associated with your models. Review the README for the exact model integration syntax and any required traits or relationships.
- Is laravel-meta suitable for SEO meta tags?
- Yes, the package explicitly covers SEO tags as one of its metadata use cases. It lets you add, update, and retrieve meta information that can support page titles, descriptions, and similar SEO needs. The package handles metadata management; you still control how those values are rendered in your views.
- How is laravel-meta configured?
- The package is described as offering flexible configuration and straightforward integration into existing Laravel projects. Check the README for configuration publishing and available options so you can adapt it to your app. Configuration details such as table names or defaults are not specified in the provided overview.
- Which Laravel versions does wangta69/laravel-meta support?
- The provided package overview does not list specific Laravel version constraints. Check the package composer.json and README on GitHub for the supported PHP and Laravel versions before installing. Composer will also report compatibility issues if your framework version does not match.
- Can I use laravel-meta for pages that are not Eloquent models?
- The package overview mentions metadata for models, pages, and SEO tags, so page-level metadata is within its intended scope. The exact API for non-model pages should be confirmed in the README. For model-backed pages, use the documented model metadata methods.
- How does laravel-meta compare to a full SEO package?
- Laravel Meta is a lightweight metadata manager, not a complete SEO suite. It focuses on adding, updating, and retrieving meta information for models, pages, or SEO tags. If you need sitemaps, redirects, or structured-data generation, you may need additional packages or custom code.
- How do I test metadata retrieval in a Laravel app using this package?
- Write a feature or unit test that creates the relevant model or page, adds meta values through the package API, and asserts that retrieval returns the expected data. Use Laravel's testing helpers and a test database so metadata storage is isolated. Check the README for any package-specific testing notes.
- Is wangta69/laravel-meta actively maintained and production-ready?
- The provided context does not include maintenance status, release history, or test coverage details. Review the GitHub repository for recent commits, issues, and tagged releases before using it in production. Because it is a lightweight package, you should also verify that its API and configuration fit your project requirements.