Attachmate by Zeeshan Tariq
CommunityManage attachments with polymorphic relationship.
Author:
Zeeshan Tariq
Package health
Automated checks of this plugin's Composer package
15 checks
- Skipped: GitHub Actions pinned to SHA
- Skipped: GitLab CI includes pinned to SHA
- Passed: Open security advisories
- Passed: Dependabot PR responsiveness — No open Dependabot PRs.
- Skipped: Renovate MR responsiveness
- Skipped: Dependabot or Renovate configured
- Skipped: Dependency update cooldown configured
- Failed: Provides a security policy — View details on Plumb
- Passed: Abandoned or archived — No consulted source marks the package abandoned (packagist, github).
- Warning: Commit and release recency — Low activity: last commit 181 days ago; last release 181 days ago.
-
Passed:
composer.lock not committed by library
—
composer.lockis 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 — No PHP constraint declared; package imposes no version restriction.
- Skipped: Current Symfony version supported
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
.
Documentation
This package provides attachment management using a polymorphic morphMany relationship within Filament. The system allows for the seamless association of attachments with various models, enabling flexible and efficient handling of file attachments across your application.

#Installation
You can install the package via composer:
composer require zeeshantariq/filament-attachmate
#Filament version compatibility
Use the package version that matches your Filament major version:
- Filament v3:
^1.1(e.g.v1.1.1) - Filament v4:
^1.2(starting fromv1.2.0) - Filament v5:
^1.2(starting fromv1.2.0)
Examples:
# Filament v3
composer require zeeshantariq/filament-attachmate:^1.1
# Filament v4 or v5
composer require zeeshantariq/filament-attachmate:^1.2
The package comes with publishable assets:
Migrations
php artisan vendor:publish --tag="filament-attachmate-migrations"
#Configuration
- Create your model
php artisan make:model MyModel
- Configure your model to handle morphMany attachments
use ZeeshanTariq\FilamentAttachmate\Core\InteractsWithAttachments;
// ...
class MyModel extends Model
{
use InteractsWithAttachments;
// ...
}
- Configure the Filament resource
- In your
formFilament resource declaration you need to addAttachmentFileUpload::make()so your users can upload the attachments.
use ZeeshanTariq\FilamentAttachmate\Forms\Components\AttachmentFileUpload;
public static function form(Form $form): Form
{
return $form
->schema([
// ...
AttachmentFileUpload::make(),
]);
}
- Configure the Filament resource The last configuration needed, is to add HandleAttachmets trait to the CreateRecord components of your model
CreateRecord component
use ZeeshanTariq\FilamentAttachmate\Core\HandleAttachments;
class CreateMyModel extends CreateRecord
{
use HandleAttachments;
// ...
}
- Configure the Filament resource The last configuration needed, is to add HandleAttachmets trait to the EditRecord components of your model
EditRecord component
use ZeeshanTariq\FilamentAttachmate\Core\HandleAttachments;
class EditMyModel extends EditRecord
{
use HandleAttachments;
// ...
}
#Changelog
Please see CHANGELOG for more information on what has changed recently.
#Contributing
Please see CONTRIBUTING for details.
#Credits
#License
The MIT License (MIT). Please see License File for more information.
The author
From the same author
Featured Plugins
A selection of plugins curated by the Filament team
Noir Theme
A theme that gives panels a focused, refined look with near-black surfaces, crisp actions, and restrained color.
Filament
Advanced Tables (formerly Filter Sets)
Supercharge your tables with powerful features like user-customizable views, quick filters, multi-column sorting, advanced table searching, convenient view management, and more. Compatible with Resource Panel Tables, Relation Managers, Table Widgets, and Table Builder!
Kenneth Sese
Spotlight Pro
Browse your Filament Panel with ease. Filament Spotlight Pro adds a Spotlight like Command Palette to your Filament Panel.
Dennis Koch