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

Filament Attachment Library Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Validation

The AttachmentField accepts the standard Filament validation rules. Look for the complete list in Filament's documentation. Furthermore, the package also provides additional validation rules.

Restricting specific MIME-types

The AttachmentField can be restricted to specific MIME-types by calling the mime method:

[!TIP] The method also accepts wildcards such as 'image/*'.

AttachmentField::make('featured_image')->mime('image/png')

MIME-specific

The AttachmentField provides the ability to filter by different file types by using the following methods:

AttachmentField::make('featured_image')->image()
AttachmentField::make('featured_image')->video()
AttachmentField::make('featured_image')->text()

By using these methods, you can increase readability and make it easier to oversee the use of specific file types.

Multiple attachments

The AttachmentField can accept multiple attachments by calling the multiple method:

AttachmentField::make('featured_image')->multiple()

It is also possible to specify the minimum and maximum amount of allowed files:

AttachmentField::make('featured_image')->minFiles(5)
AttachmentField::make('featured_image')->maxFiles(10)
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.
cocosmos/filament-sticky-save-bar
patrickbussmann/oauth2-apple
3brs/enterprise-security-bundle
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope