van-ons/filament-attachment-library
Filament Attachment Library adds a simple attachments manager to your Filament panel: upload files, browse and select existing attachments, and store them in a central library. Includes installer command, migrations/assets, and Tailwind-ready templates.
HasAttachments), making it ideal for applications heavily reliant on database-backed file relationships (e.g., CMS, e-commerce, or SaaS platforms).public. This flexibility is critical for scalability and cloud-native deployments.filament-attachment-library:install command. The plugin system abstracts away complex file handling.featured_image).gallery via HasAttachments trait).
This reduces schema changes and allows for incremental adoption.<x-laravel-attachment-library-image />, ensuring consistency across views.glide.php setup for image processing. Misconfiguration could break image rendering or introduce performance overhead.public with other assets) risk file collisions or permission issues.ATTACHMENTS_DISK)?AttachmentField to support custom metadata (e.g., alt text, captions)?composer require van-ons/filament-attachment-library:^2.0
php artisan filament-attachment-library:install
attachments) in config/filesystems.php.glide.php for image processing.featured_image columns) to the new system.AttachmentField in Filament forms.HasAttachments trait for relationship-based attachments (e.g., galleries).// Custom script to move files from old S3 bucket to new disk
$oldFiles = Storage::disk('s3-old')->files('path/to/files');
foreach ($oldFiles as $file) {
Storage::disk('attachments')->put($file, Storage::disk('s3-old')->get($file));
}
spatie/laravel-medialibrary or spatie/glide-laravel is installed if not already.glide.php and attachment-library.php.HasAttachments trait to relevant models.gallery()).AttachmentField.<x-laravel-attachment-library-image />.spatie/glide-laravel and van-ons/laravel-attachment-library are up-to-date.php artisan storage:link for local disk issues.storage:disk commands to verify disk connectivity.content config to ensure blade files are scanned.How can I help you explore Laravel packages today?