- What is liberusoftware/module-cms-media used for?
- It is a Laravel module for Liberu CMS that handles uploaded media such as images and files. It provides secure upload handling, storage, folders, and metadata behind a content-agnostic contract so other CMS modules can manage assets consistently. Use it when you need media management inside a modular Liberu CMS application.
- How do I install liberusoftware/module-cms-media in a Laravel application?
- Install it with Composer using composer require liberusoftware/module-cms-media. Then follow the module's registration and migration steps for your Liberu CMS or Laravel application, and publish any configuration or assets the package provides. Check the package README for the exact service provider and setup commands because module installation can vary.
- Which Laravel versions are supported by this media module?
- Compatibility depends on the package's composer.json constraints, so check those before installing. It is built for Laravel-based Liberu CMS applications, but the supported Laravel and PHP versions are defined by the package release you choose. If you are on an older or newer Laravel version, verify the constraint or use a matching package release.
- How does it integrate with other Liberu CMS modules?
- It integrates through a content-agnostic media contract, so CMS modules can store, organize, and serve assets without coupling to a specific content type. Other modules can depend on that contract instead of implementing their own file handling. This keeps media behavior consistent across a modular Liberu CMS codebase.
- How are media uploads secured in this package?
- The package is described as providing secure uploads, which typically means validation and controlled storage rather than accepting raw user files directly. You should still configure disk permissions, file validation, and access rules for your application. Review the package's upload configuration and keep Laravel's storage and security settings aligned with your deployment.
- Can I organize uploaded media into folders?
- Yes, folders are part of the module's media organization features. You can use them to group uploaded assets and keep CMS media structured rather than flat. The exact folder API and UI hooks should be confirmed in the package documentation.
- What metadata is stored for uploaded media?
- It manages metadata for uploaded media alongside storage and folder organization. That metadata can help identify and serve assets consistently across CMS modules. The precise metadata fields are defined by the package's implementation, so check its migrations or contracts for the full schema.
- Can I use this media module outside Liberu CMS?
- It is designed around a content-agnostic contract, so the media layer is not tied to one content type. That makes it suitable for Liberu CMS modules that need shared media handling. Using it completely outside Liberu CMS may require additional integration work, so confirm the package's dependencies first.
- How should I test media uploads with this package?
- For testing, use Laravel's file upload and storage fakes to simulate media without writing real files. Assert that uploads are validated, stored on the expected disk, and recorded with the correct metadata and folder association. Also test access control around serving media if your application exposes private files.
- Is liberusoftware/module-cms-media maintained and production-ready?
- Assess maintenance by checking the package's Composer metadata, release history, and compatibility with your Laravel version. For Liberu CMS, this module is the natural choice when you want media handling consistent with the CMS contract. Alternatives include building a custom media layer or using a general Laravel media library, but those may require extra integration with Liberu CMS modules.