Custom attribute file upload plugin screenshot
Dark mode ready
No multilingual support
Supports v5.x

Custom attribute file upload by Hernan Soto

Community

Component to add a custom name to image attributes for captions

Tags: Forms Form Field
Supported versions:
5.x 4.x 3.x
Hernan Soto avatar Author: Hernan Soto

Package health

Automated checks of this plugin's Composer package

80 / 100
Security 64
Maintenance 100
Ecosystem 100
15 checks
  • Failed: GitHub Actions pinned to SHA — View details on Plumb
  • Skipped: GitLab CI includes pinned to SHA
  • Passed: Open security advisories
  • Passed: Dependabot PR responsiveness — No open Dependabot PRs.
  • Skipped: Renovate MR responsiveness
  • Warning: Dependabot or Renovate configured — Updater does not cover the JavaScript ecosystem, which has a committed lockfile.
  • Failed: Dependency update cooldown configured — No cooldown configured in .github/dependabot.yml. View details on Plumb
  • Passed: Provides a security policy
  • Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
  • Passed: Commit and release recency — Active: last commit 0 days ago; last release 52 days ago.
  • Passed: composer.lock not committed by library — composer.lock is absent from the released dist archive.
  • Passed: Dist archive is lean
  • Passed: Current Laravel version supported — Package dependencies resolve together with current Laravel 13.0.
  • Passed: Current PHP version supported — Constraint ^8.2 supports current PHP 8.5.
  • Skipped: Current Symfony version supported
Third-party plugin. This is built by the community, not the Filament team. Filament does not review, endorse, or vet the security of plugins outside the filament/ namespace. Review the source and install at your own risk. Found malware or an unresolved security issue the author won't address? Report it .
Powered by Plumb Last scanned 2 months ago

Documentation

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.

The author

Hernan Soto avatar Author: Hernan Soto

SR Backend (PHP / Laravel / Filament) developer.

Plugins
1
Stars
3