Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Media Bundle

Media Bundle Laravel Package

201created/media-bundle

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Media Bundle
How do I install 201created/media-bundle in a Laravel project?
Run `composer require 201created/media-bundle` in your project directory. The package integrates seamlessly with Laravel’s service provider and facade systems, requiring no additional configuration unless you need custom storage backends. Follow the README for database migration steps to create the media table.
Does this package support AWS S3 or other cloud storage providers?
Yes, the bundle leverages Laravel’s Filesystem and Storage APIs, so it natively supports S3, DigitalOcean Spaces, and other PSR-11-compatible storage backends. Configure your `.env` file with the appropriate `FILESYSTEM_DISK` setting, and the package will handle the rest. Custom adapters may require extending the bundle’s abstraction layer.
Can I use this with Laravel Nova for file management?
Absolutely. The bundle is designed to work with Laravel Nova, Livewire, or Inertia.js for frontend file handling. You can integrate it into Nova toolkits or custom admin panels by using its facades or service container bindings. Check the package’s events/hooks for post-upload actions like notifications or analytics.
What Laravel versions and PHP requirements does this package support?
The package is compatible with Laravel 9.x and 10.x and requires PHP 8.1 or higher. Always verify compatibility with your specific Laravel version by checking the package’s changelog or repository issues. If using older Laravel versions, you may need to adjust dependencies manually.
How do I handle large file uploads or resumable transfers?
The bundle does not natively support resumable uploads or chunked transfers for large files, but you can integrate it with Laravel’s queue system (e.g., `bus:work`) for async processing. For resumable uploads, pair it with frontend libraries like Dropzone.js or Uppy, then handle the upload logic via the bundle’s API endpoints.
Is there built-in support for image optimization or video processing?
No, the package focuses on file storage and management, not media processing like transcoding or thumbnail generation. For image optimization, consider integrating with packages like Intervention Image or Spatie Media Library alongside this bundle. Video processing would require third-party tools like FFmpeg.
How do I secure file uploads against malicious content (e.g., viruses, path traversal)?
The bundle extends Laravel’s validation rules (e.g., `mimes`, `max`) to filter file types, but you should add custom validation for your use case. For virus scanning, integrate with a service like ClamAV via Laravel’s queue system. Always validate file paths and use Laravel’s `Storage` facade to prevent path traversal attacks.
Can I customize the database schema for the media table?
Yes, the bundle assumes a standard media table with fields like `path`, `mime_type`, `size`, and `user_id`, but you can extend it for soft deletes, metadata, or access control. Use Laravel migrations to add custom columns or modify the bundle’s service provider to include additional logic.
Does this package support GDPR/CCPA compliance for file retention?
The bundle itself doesn’t enforce retention policies, but you can implement GDPR/CCPA compliance by adding logic to delete or anonymize files when users request data removal. Use Laravel’s model events (e.g., `deleted`) or queue jobs to handle cleanup asynchronously.
What are some alternatives to 201created/media-bundle for Laravel file uploads?
Alternatives include Spatie Media Library (feature-rich with image/video processing), Laravelista/Upload, and BeyondCode/Laravel WebSockets for real-time uploads. Spatie is more opinionated, while Laravelista offers simpler abstractions. Evaluate your needs—this bundle excels in storage flexibility and Laravel ecosystem integration.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle