PHPackages                             zeeshantariq/filament-attachmate - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. zeeshantariq/filament-attachmate

ActiveLibrary[Database &amp; ORM](/categories/database)

zeeshantariq/filament-attachmate
================================

Implement a polymorphic morphMany relationship for managing attachments within Filament

v1.2.0(3mo ago)2210.0k↓64.4%2[4 issues](https://github.com/zeeshantariq08/filament-attachmate/issues)[1 PRs](https://github.com/zeeshantariq08/filament-attachmate/pulls)MITPHP

Since Feb 29Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/zeeshantariq08/filament-attachmate)[ Packagist](https://packagist.org/packages/zeeshantariq/filament-attachmate)[ RSS](/packages/zeeshantariq-filament-attachmate/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Filament Attachmate
===================

[](#filament-attachmate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b47739fb46dcd2de383479644e5518d72e0cdcfcaf190c4dd04f80477a8a95bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a65657368616e74617269712f66696c616d656e742d6174746163686d6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zeeshantariq/filament-attachmate)[![Total Downloads](https://camo.githubusercontent.com/445994b91e620030fd028b147a5c1b97915bbdfc1a44b00a4a6a28249c702e99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a65657368616e74617269712f66696c616d656e742d6174746163686d6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zeeshantariq/filament-attachmate)[![License](https://camo.githubusercontent.com/ddb7059e3f5a090839c783ad350af59c1c65db67a0067cea2e5d6b63e7b1f489/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7a65657368616e74617269712f66696c616d656e742d6174746163686d6174652e7376673f7374796c653d666c61742d737175617265)](https://github.com/zeeshantariq08/filament-attachmate/blob/main/LICENSE.md)

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.

[![Filament Attachmate](https://raw.githubusercontent.com/zeeshantariq08/filament-attachmate/main/filament-attachmate-banner.png)](https://raw.githubusercontent.com/zeeshantariq08/filament-attachmate/main/filament-attachmate-banner.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require zeeshantariq/filament-attachmate
```

### Filament version compatibility

[](#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 from `v1.2.0`)
- **Filament v5**: `^1.2` (starting from `v1.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
-------------

[](#configuration)

1. Create your model

```
php artisan make:model MyModel
```

2. Configure your model to handle morphMany attachments

```
use ZeeshanTariq\FilamentAttachmate\Core\InteractsWithAttachments;
// ...

class MyModel extends Model
{
    use InteractsWithAttachments;

    // ...
}
```

3. Configure the Filament resource

- In your `form` Filament resource declaration you need to add `AttachmentFileUpload::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(),
        ]);
}
```

4. 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;

    // ...
}
```

5. 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
---------

[](#changelog)

Please see [CHANGELOG](https://github.com/zeeshantariq08/filament-attachmate/blob/main/CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/zeeshantariq08/filament-attachmate/blob/main/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [zeeshan](https://github.com/zeeshantariq08)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/zeeshantariq08/filament-attachmate/blob/main/LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance75

Regular maintenance activity

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~246 days

Total

4

Last Release

118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f47cff8ce3f93868b40ac01d5b9a7f4d254434b55d6850cf064b6bbf868fdab7?d=identicon)[zeeshantariq08](/maintainers/zeeshantariq08)

---

Top Contributors

[![zeeshantariq08](https://avatars.githubusercontent.com/u/46603062?v=4)](https://github.com/zeeshantariq08 "zeeshantariq08 (20 commits)")

---

Tags

attachmentfilamentpolymorphic

### Embed Badge

![Health badge](/badges/zeeshantariq-filament-attachmate/health.svg)

```
[![Health](https://phpackages.com/badges/zeeshantariq-filament-attachmate/health.svg)](https://phpackages.com/packages/zeeshantariq-filament-attachmate)
```

###  Alternatives

[filament/filament

A collection of full-stack components for accelerated Laravel app development.

3829.6M3.7k](/packages/filament-filament)[filament/tables

Easily add beautiful tables to any Livewire component.

3730.5M157](/packages/filament-tables)[filament/actions

Easily add beautiful action modals to any Livewire component.

1327.7M80](/packages/filament-actions)[relaticle/flowforge

Flowforge is a lightweight Kanban board package for Filament that works with existing Eloquent models.

413106.5k6](/packages/relaticle-flowforge)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1327.7M65](/packages/filament-infolists)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
