- What is kayacekovic/advanced-nova-media-library used for?
- It is a Laravel Nova field for displaying, creating, updating, and ordering a Spatie Media Library model. The package adds enhanced file and image management for Nova resources, including multi-file uploads, cropping, conversions, and customizable media collections. Use it when you want Spatie Media Library media managed directly inside Laravel Nova.
- How do I install advanced-nova-media-library in a Laravel Nova app?
- Install it with Composer by requiring kayacekovic/advanced-nova-media-library in your Laravel application. Then follow the repository README for any Nova field registration, configuration publishing, or asset steps. Since it is a Nova field, make sure Laravel Nova is already installed and configured.
- Does advanced-nova-media-library require spatie/laravel-medialibrary?
- Yes, the package is described as a Nova field for a Spatie Media Library model, so spatie/laravel-medialibrary is a core dependency. Your Eloquent model should use Spatie's InteractsWithMedia trait and define the media collections you want the Nova field to manage. Confirm the exact dependency constraints in the package composer.json.
- How do I configure media collections and conversions for the Nova field?
- Define media collections and conversions on your Eloquent model using Spatie Media Library conventions, then expose the relevant collection in the Nova field configuration. The package supports customizable media collections and enhanced file and image management. Check the README for the exact field options and naming conventions.
- Does advanced-nova-media-library support multi-file uploads and image cropping?
- The package blurb lists multi-file uploads and cropping as features, so the field is intended to handle both in Laravel Nova. It also mentions conversions and customizable collections for richer media workflows. Verify the exact cropping and upload options in the README for your Nova version.
- How does media ordering work with this Nova field?
- The package overview states that the field supports ordering a Spatie Media Library model. In practice, use the field's ordering controls in Nova and confirm the persistence details in the README. This is useful when editors need to control the display sequence of images or files.
- Which Laravel and Nova versions are supported by advanced-nova-media-library?
- The exact Laravel and Nova version constraints are defined in the package composer.json and README, so check those before installing. This matters most when you are on the latest Laravel or Nova major version. If your app uses an older Nova release, verify compatibility before adding the field to resources.
- How should I test a Nova resource that uses this media field?
- Test the model-side media behavior with Laravel and Spatie Media Library assertions, including collections, disk paths, and generated conversions. Use Nova's testing helpers or request tests for the field and upload workflow where applicable. Follow the package README for any field-specific test setup.
- What production concerns should I check before using advanced-nova-media-library?
- Configure Spatie Media Library disks, path generators, and conversions for production, and ensure queue workers run if conversions are queued. Check storage permissions, image driver support, and upload size limits for large media files. Also verify that the Nova field's ordering and collection configuration match your production data model.
- What are alternatives to advanced-nova-media-library, and is it maintained?
- Alternatives include Nova's built-in File and Image fields, using Spatie Media Library directly in your own Nova fields, or other Nova media packages with similar upload and cropping features. For maintenance, review the GitHub repository's recent commits, open issues, and composer constraints before adopting it. Choose the package that best matches your needed multi-file, cropping, ordering, and conversion workflows.