New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

elmudo-dev/filament-custom-attribute-file-upload

Component to add a custom name to image attributes for captions
1,507 8
Install
composer require elmudo-dev/filament-custom-attribute-file-upload
Latest Version:v2.0.3
PHP:^8.2
Laravel:12 · 13
License:MIT
Last Updated:Sep 15, 2026
Links: GitHub  ·  Packagist
Maintainer: elmudometal

Component to add a custom name to image attributes for captions

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This component adds a custom field to save a caption attribute to the images. It has two versions: one to work with the native FileUpload component and another to work with the SpatieMediaLibraryFileUpload component.

image

Installation

You can install the package via composer:

composer require elmudo-dev/filament-custom-attribute-file-upload

[!IMPORTANT] If you have not set up a custom theme and are using Filament Panels follow the instructions in the Filament Docs first.

After setting up a custom theme add the plugin's views to your theme css file or your app's css file if using the standalone packages.

/** Custom attribute file upload*/
@import '../../../../vendor/elmudo-dev/filament-custom-attribute-file-upload/resources/css/index.css';
@source '../../../../vendor/elmudo-dev/filament-custom-attribute-file-upload/resources/**/*.blade.php';

You can publish and run the migrations with:

php artisan vendor:publish --tag="filament-custom-attribute-file-upload-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="filament-custom-attribute-file-upload-config"

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-custom-attribute-file-upload-views"

Usage

Using with Spatie media Library

CustomAttributeSpatieMediaLibraryFileUpload::make('gallery')
    ->collection('gallery')
    ->conversion('thumb')
    ->downloadable()
    ->panelLayout('grid')
    ->multiple()
    ->reorderable(),

Using with File Upload

CustomAttributeFileUpload::make('gallery')                 
    ->downloadable()
    ->panelLayout('grid')
    ->multiple()
    ->reorderable(),

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

hammadzafar05/mobile-bottom-nav

A thumb-friendly mobile bottom navigation bar for Filament panels. It programmat...

78,100 20
prodstarter/filament-notification-center

Extend Filament's notification drawer with customizable tabs and notification ca...

68,590 6
jibaymcs/tabbed

A FilamentPHP plugin to manage records in manageable tabs

13,304 8
l3aro/rating-star-for-filament

Rating star for filament table column and schemas.

13,198 3
zvizvi/filament-notifications-tabs

Tabs and per-notification actions (delete, toggle read status) for the Filament...

7,000 11

Version History

Version Released PHP License
v2.0.3 ^8.2 MIT
v2.0.2 ^8.2 MIT
v2.0.1 ^8.2 MIT
v2.0.0 ^8.2 MIT
v1.1.0 ^8.1 MIT