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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity